From dfd64a3780ee61af38740bc8f53c35eb06121c42 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 4 Jun 2011 15:42:42 -0500 Subject: we don't need the repos_changed semaphore file anymore ./g was doing 2 pair of git show-ref --head HEAD to figure out if something had change... notwidthstanding that it is a complete waste for the case of ./g clone, the only reason this was done was to touch a ./clone/repos_changed file that used to be used back in the 'build repo' days (pre 3.4) binned that. --- g | 7 ------- 1 file changed, 7 deletions(-) (limited to 'g') diff --git a/g b/g index bf9275462c7f..bf6d8871ad85 100755 --- a/g +++ b/g @@ -232,9 +232,6 @@ for REPO in $DIRS ; do ;; esac - # check for changes - HEADREF=$(git show-ref --head HEAD) - # do it! if [ "$COMMAND" != "clone" -o ! -d $DIR ] ; then if [ "$REPORT_REPOS" = "1" -a "$COMMAND" != "grep" ] ; then @@ -254,10 +251,6 @@ for REPO in $DIRS ; do update_hooks "$HOOKDIR" fi - # update stamp if the repo changed - NEWHEADREF=$(git show-ref --head HEAD) - [ "$HEADREF" != "$NEWHEADREF" ] && touch $CLONEDIR/repos_changed - case "$COMMAND" in pull|clone) # update links -- cgit