Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git reset failed in branch repository after fetch #2

Open
sanemat opened this issue Jun 14, 2010 · 1 comment
Open

git reset failed in branch repository after fetch #2

sanemat opened this issue Jun 14, 2010 · 1 comment

Comments

@sanemat
Copy link

sanemat commented Jun 14, 2010

error below:
git svn fetch --all
git reset --hard branches/foo
fatal: Failed to resolve 'branches/foo' as a valid ref.

@themouette
Copy link

to correct this issue, I just changed following ( around line 35):

  branchpath=$(echo $branch|cut -f1 -d/)
  echo $tags|grep $branchpath >/dev/null 2>&1 && tags=$branchpath

with

  branchpath=$(echo $branch|cut -f1 -d/)
  branch=$(echo $branch|cut -f2 -d/)
  echo $tags|grep $branchpath >/dev/null 2>&1 && tags=$branchpath

and it seems to work fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants