Tim, all,
It appears that the git tde/scripts will need updating to work with git >= 1.6.5. I still get the error:
git submodule foreach "/dat_f/tde/git/scripts/switch_all_submodules_to_head_and_clean drankin"
Entering 'experimental' This script can only be run from a top level git directory. Exiting... Stopping at 'experimental'; script returned non-zero status.
What that means is the foreach loop in switch_all_submodules_to_head_and_clean gets to experimental, crashes and then doesn't complete for any of the remaining modules in:
'git submodule scripts/switch_all_submodules_to_head_and_clean'
It seems to be failing on:
git submodule foreach "$THISSCRIPT $gituser"
maybe it should be?:
git submodule foreach --recursive "$THISSCRIPT $gituser"
Below are a couple of patches for the scripts inserting '--recursive' where applicable:
--- scripts/switch_all_submodules_to_head_and_clean +++ scripts/switch_all_submodules_to_head_and_clean 2012-02-17 11:42:56.955472310 -0600 @@ -37,10 +37,10 @@ fi
git submodule init - git submodule update - git submodule foreach "git checkout master" - git submodule foreach "git pull" - git submodule foreach "$THISSCRIPT $gituser" + git submodule update --recursive + git submodule foreach --recursive "git checkout master" + git submodule foreach --recursive "git pull" + git submodule foreach --recursive "$THISSCRIPT $gituser"
git checkout -- .gitmodules fi
--- scripts/update_all_submodules +++ scripts/update_all_submodules 2012-02-17 11:50:19.504957047 -0600 @@ -30,7 +30,7 @@ cd ../ done git submodule init - git submodule update + git submodule update --recursive cd $PARENTDIR/$DIR2UPDATE git reset --hard HEAD git clean -d -x -f
At least I am not cloning the admin and cmake contents!
It appears that the git tde/scripts will need updating to work with git >= 1.6.5. I still get the error:
I'm running git-1.7.1 and have no problems updating my local repository. Doesn't help you :(, but indicates the problem might be related elsewhere rather than version numbers.
Darrell
On 02/17/2012 03:39 PM, Darrell Anderson wrote:
I'm running git-1.7.1 and have no problems updating my local repository. Doesn't help you :(, but indicates the problem might be related elsewhere rather than version numbers.
Darrell
That's strange. The change suggesting --recursive was required was at 1.6.5 according to stackoverflow:
http://stackoverflow.com/questions/3796927/git-clone-submodule
Either way, I have git 1.7.9.1-1. I'm sure there have been a number of new "features"/bugs introduced since 1.7.1 :)