diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-13 19:05:38 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-13 19:05:38 -0700 |
commit | dfdcb558ecf93c0e09b8dab89cff4839e8c95e36 (patch) | |
tree | ae8d1dcb7bcf60a633c53a8ea1e1145f8ec60e67 /git-parse-remote.sh | |
parent | f327dbced25a3c6fcc0b84d2d6adffa9343b09f0 (diff) | |
download | git-dfdcb558ecf93c0e09b8dab89cff4839e8c95e36.tar.gz |
Fix-up previous expr changes.
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>
Diffstat (limited to 'git-parse-remote.sh')
-rwxr-xr-x | git-parse-remote.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 65c66d5d74..c9b899e3d7 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -77,7 +77,7 @@ canon_refs_list_for_fetch () { force= case "$ref" in +*) - ref=$(expr "z$ref" : 'z\+\(.*\)') + ref=$(expr "z$ref" : 'z+\(.*\)') force=+ ;; esac |