Re: [RFC/PATCH] git-fetch: Use already fetched branch with the --local flag.
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- Oct 17, 2006, 14:03 UTC
- Message-ID
- <873b9n9gzx.fsf@gmail.com>
- In-Reply-To
- <87ac3w8jl1.fsf@gmail.com>
Please, add this:
diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 617d022..a792323 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -260,7 +260,7 @@ get_ref_for_remote_branch (){ remotes) ref=$(sed -ne '/^Pull: */{ s///p - }' "$GIT_DIR/remotes/$1" | grep "$2:") + }' "$GIT_DIR/remotes/$1" | grep "^$2:") expr "z$ref" : 'z[^:]*:\(.*\)' ;; *)