diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-04-21 10:42:41 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-21 10:42:42 -0700 |
commit | 0e6e1a5fbdd3143b74bf45f009bb4e850bdc785a (patch) | |
tree | 01e676502b1bd1c4a84aa3d3ebbb62d6d75eba37 /contrib/examples/git-fetch.sh | |
parent | cc291953df19aa4a97bee3590e708dc1fc557500 (diff) | |
parent | bd368a9baf5a42e2076ef4c8a35312ccab171452 (diff) | |
download | git-0e6e1a5fbdd3143b74bf45f009bb4e850bdc785a.tar.gz git-0e6e1a5fbdd3143b74bf45f009bb4e850bdc785a.tar.xz |
Merge branch 'ep/shell-command-substitution'
* ep/shell-command-substitution:
t9362-mw-to-git-utf8.sh: use the $( ... ) construct for command substitution
t9360-mw-to-git-clone.sh: use the $( ... ) construct for command substitution
git-tag.sh: use the $( ... ) construct for command substitution
git-revert.sh: use the $( ... ) construct for command substitution
git-resolve.sh: use the $( ... ) construct for command substitution
git-repack.sh: use the $( ... ) construct for command substitution
git-merge.sh: use the $( ... ) construct for command substitution
git-ls-remote.sh: use the $( ... ) construct for command substitution
git-fetch.sh: use the $( ... ) construct for command substitution
git-commit.sh: use the $( ... ) construct for command substitution
git-clone.sh: use the $( ... ) construct for command substitution
git-checkout.sh: use the $( ... ) construct for command substitution
install-webdoc.sh: use the $( ... ) construct for command substitution
howto-index.sh: use the $( ... ) construct for command substitution
Diffstat (limited to 'contrib/examples/git-fetch.sh')
-rwxr-xr-x | contrib/examples/git-fetch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/examples/git-fetch.sh b/contrib/examples/git-fetch.sh index a314273bd..554070909 100755 --- a/contrib/examples/git-fetch.sh +++ b/contrib/examples/git-fetch.sh @@ -67,7 +67,7 @@ do keep='-k -k' ;; --depth=*) - shallow_depth="--depth=`expr "z$1" : 'z-[^=]*=\(.*\)'`" + shallow_depth="--depth=$(expr "z$1" : 'z-[^=]*=\(.*\)')" ;; --depth) shift @@ -262,12 +262,12 @@ fetch_per_ref () { http://* | https://* | ftp://*) test -n "$shallow_depth" && die "shallow clone with http not supported" - proto=`expr "$remote" : '\([^:]*\):'` + proto=$(expr "$remote" : '\([^:]*\):') if [ -n "$GIT_SSL_NO_VERIFY" ]; then curl_extra_args="-k" fi if [ -n "$GIT_CURL_FTP_NO_EPSV" -o \ - "`git config --bool http.noEPSV`" = true ]; then + "$(git config --bool http.noEPSV)" = true ]; then noepsv_opt="--disable-epsv" fi |