summaryrefslogtreecommitdiff
path: root/g
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-02-26 16:17:51 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-02-26 16:18:14 +0100
commit73b50b73366f069b2ba680cec35b09d566209109 (patch)
treed00c9bd8e13b81434886e31311b39c2e86217a8e /g
parentf624144e41291c11f3892dda1027221989d704be (diff)
g clone: fix non-referenced cloning
Change-Id: I98d6f5c20bacbb5d6457857906c591fea034288a
Notes
test note
Diffstat (limited to 'g')
-rwxr-xr-xg10
1 files changed, 6 insertions, 4 deletions
diff --git a/g b/g
index f086149345bd..c24ca3bad481 100755
--- a/g
+++ b/g
@@ -254,11 +254,13 @@ local configured
git submodule init $module || return $?
fi
done
- if [ -n "$REFERENCED_GIT" ] ; then
- for module in $SUBMODULES_CONFIGURED ; do
+ for module in $SUBMODULES_CONFIGURED ; do
+ if [ -n "$REFERENCED_GIT" ] ; then
git submodule update --reference $REFERENCED_GIT/.git/modules/$module $module || return $?
- done
- fi
+ else
+ git submodule update $module || return $?
+ fi
+ done
return 0
}