summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f327dbc)
raw | patch | inline | side by side (parent: f327dbc)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 14 Apr 2006 02:05:38 +0000 (19:05 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 14 Apr 2006 02:05:38 +0000 (19:05 -0700) |
The regexp on the right hand side of expr : operator somehow was
broken.
expr 'z+pu:refs/tags/ko-pu' : 'z\+\(.*\)'
does not strip '+'; write 'z+\(.*\)' instead.
We probably should switch to shell based substring post 1.3.0;
that's not bashism but just POSIX anyway.
Signed-off-by: Junio C Hamano <junkio@cox.net>
broken.
expr 'z+pu:refs/tags/ko-pu' : 'z\+\(.*\)'
does not strip '+'; write 'z+\(.*\)' instead.
We probably should switch to shell based substring post 1.3.0;
that's not bashism but just POSIX anyway.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh | patch | blob | history | |
git-parse-remote.sh | patch | blob | history |
diff --git a/git-fetch.sh b/git-fetch.sh
index 711650f3bc49636b43c55e14134cb9f20656f8f9..83143f82cfa3b92a38a9caa2b00860541d139aa2 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
else
not_for_merge=
fi
- if expr "z$ref" : 'z\+' >/dev/null
+ if expr "z$ref" : 'z+' >/dev/null
then
single_force=t
- ref=$(expr "z$ref" : 'z\+\(.*\)')
+ ref=$(expr "z$ref" : 'z+\(.*\)')
else
single_force=
fi
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 65c66d5d7439481cf0ba32c05f1b96def0ad1f86..c9b899e3d73152a92523ed460f4d90fdab3d6f33 100755 (executable)
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
force=
case "$ref" in
+*)
- ref=$(expr "z$ref" : 'z\+\(.*\)')
+ ref=$(expr "z$ref" : 'z+\(.*\)')
force=+
;;
esac