summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorNorbert Thiebaud <norbert@sqdata.com>2010-11-20 23:00:47 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-30 20:25:21 -0600
commit3288713ba610617677b26c212bf0c0314f65a362 (patch)
tree74d09604d3d004c0819333f118d16125a20941b9 /g
parent8a71b563c9c6aee048dd237d8c443a0505e5adf8 (diff)
Make the determination of the remote repo url work on MacOS
Use bash substitution, instead of a piped sed
Diffstat (limited to 'g')
-rwxr-xr-xg5
1 files changed, 3 insertions, 2 deletions
diff --git a/g b/g
index e41042293a74..2d5e7d2d1262 100755
--- a/g
+++ b/g
@@ -2,7 +2,7 @@
#
# Wrapper for git to handle more subdirs at the same time
#
-
+set -x
# no params, no action
if [ "$#" -eq "0" ] ; then
git
@@ -187,7 +187,8 @@ for REPO in $DIRS ; do
fi
;;
clone)
- EXTRA="$(git config remote.origin.url|sed 's|/[^/]\+$||')/${REPO}"
+ EXTRA="$(git config remote.origin.url)"
+ EXTRA=${EXTRA/bootstrap/${REPO}}
;;
esac