summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/download/git4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/download/git b/support/download/git
index 787b6bcca0..868dfad0dd 100755
--- a/support/download/git
+++ b/support/download/git
@@ -47,7 +47,9 @@ git_cache="${dl_dir}/git"
# fetch'ed later.
if [ ! -d "${git_cache}" ]; then
_git init "'${git_cache}'"
- _git -C "'${git_cache}'" remote add origin "'${uri}'"
+ pushd "${git_cache}" >/dev/null
+ _git remote add origin "'${uri}'"
+ popd >/dev/null
fi
pushd "${git_cache}" >/dev/null
OpenPOWER on IntegriCloud