Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More verbose messages when working around git://

  • Loading branch information...
commit eab571b6107cce45b256837c8e4b0af7f513941c 1 parent e92360e
@rickofullsail rickofullsail authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 gitflow.sh
View
9 gitflow.sh
@@ -67,7 +67,7 @@ case "$1" in
git submodule init
git submodule update
# Since submodules use git:// this may have failed - try http://
- if [ ! -f "$SUBMODULE_FILE" ] ; then
+ if [ ! -f "-$SUBMODULE_FILE" ] ; then
sed -e 's/git:/http:/g' "$MODULES_FILE" > "http-$MODULES_FILE"
echo "It looks like the submodule update failed."
MOD_DIFF=`diff "$MODULES_FILE" "http-$MODULES_FILE"`
@@ -84,6 +84,13 @@ case "$1" in
git submodule update
echo " ... reverting back to your original .gitmodules file"
mv "original-$MODULES_FILE" "$MODULES_FILE"
+ if [ ! -f "$SUBMODULE_FILE" ] ; then
+ echo "Sorry, but that didn't appear to work, either."
+ cd "$lastcwd"
+ exit
+ else
+ echo "That worked. Submodules look good."
+ fi
fi
cd "$lastcwd"
fi
Please sign in to comment.
Something went wrong with that request. Please try again.