diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-06-04 15:42:42 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-06-04 15:42:42 -0500 |
commit | dfd64a3780ee61af38740bc8f53c35eb06121c42 (patch) | |
tree | 1725632b19a4fa595554547a8433404c0edbcaa1 /g | |
parent | 86dfba53c9bc37ec819e3881bef7cb3feac07eb8 (diff) |
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.
Diffstat (limited to 'g')
-rwxr-xr-x | g | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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 |