summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-10-04 16:03:57 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-10-04 16:06:02 +0200
commit677b4402a970ef135da76760c9a97a1ffb74c3b9 (patch)
tree0e85ba1222e6f00171e1f73359f9ed8164b016d7 /g
parent2add63d2414db75ca91fa07dc82ad8cf9d7ddc93 (diff)
g: fix --set-push-urls
1) submodule's .git is possibly a file now 2) just use the logerrit alias, as - logerrit setup already set that up - possibly otherwise the right ssh key is not picked up Change-Id: I4fb355a7f7ec7d549d2b06367f4fd10d06086374
Diffstat (limited to 'g')
-rwxr-xr-xg6
1 files changed, 3 insertions, 3 deletions
diff --git a/g b/g
index 4c0184cc9b2d..0d899b4a7fe2 100755
--- a/g
+++ b/g
@@ -115,9 +115,9 @@ local repo
fi
echo "setting up push url for ${repo?}"
if [ "${repo?}" = "helpcontent2" ] ; then
- git config remote.origin.pushurl "ssh://${PUSH_USER}gerrit.libreoffice.org:29418/help"
+ git config remote.origin.pushurl "ssh://${PUSH_USER}logerrit/help"
else
- git config remote.origin.pushurl "ssh://${PUSH_USER}gerrit.libreoffice.org:29418/${repo?}"
+ git config remote.origin.pushurl "ssh://${PUSH_USER}logerrit/${repo?}"
fi
popd > /dev/null
}
@@ -137,7 +137,7 @@ SUBMODULES_ACTIVE=""
local repo
for repo in ${SUBMODULES_ALL?} ; do
- if [ -d ${repo?}/.git ] ; then
+ if [ -d ${repo?}/.git -o -f ${repo?}/.git ] ; then
SUBMODULES_ACTIVE="${repo?} ${SUBMODULES_ACTIVE?}"
fi
done