On Tue, 7 May 2013 08:44:33 -0700 (PDT)
Héctor Gomis <hectorgo...@gmail.com> wrote:
> I'm new using GIT. Some weeks ago I moved 1 folder from my treefolder
> to another place using "git filter-branch -f --tree-filter 'mv
> assets/www .' HEAD". Now I would like to move again another one,
> concretly git filter-branch -f --tree-filter 'mv www/app/resources
> www' HEAD". The problem now in that error in my repository:
> hgomis@ORD195 /C/Sencha/assets_backup (master)
> $ git filter-branch -f --tree-filter 'mv www/app/resources www' HEAD
> Rewrite d9ca94fdaf2c5f3945514581e91186b6b6460e38 (55/135)
> mv: cannot stat `www/app/resources': No such file or directory
This is the problem: mv encounters a problem and returns a non-zero
exit code which is detected by the `git filter-branch` machinery and
makes the whole process fail (which is logical).
mv is telling you there's no "www/app/resources" in the given commit
(d9ca94 I suppose).
The quick and dirty way to fix this is to append "|| true" onto the end
of that mv call which forces the exit code of the whole call to be 0.
The slow and clean way is to first make sure the absense of that
directory in that commit is okay, and employ the quick and dirty way
only if that holds true.
> tree filter failed: mv www/app/resources www
> rm: cannot remove `c:/Sencha/assets_backup/.git-rewrite/revs':
> Permission denied
> rm: cannot remove directory `c:/Sencha/assets_backup/.git-rewrite':
> Directory not empty
^^^ These two are standard for Git for Windows. I dunno if this a known
problem or not.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.