new_branch="$3"
if [ "$new_branch" = 1 ]; then
- commit_date="`git show --format='%cD' | head -1`" &&
+ commit_date="`git show --format='%cD' -s`" &&
find . \( -name .git -type d -prune \) -o \
-exec touch --date="$commit_date" '{}' \+
fi
new_branch="$3"
if [ "$new_branch" = 1 ]; then
- commit_date="`git show --format='%cD' | head -1`" &&
+ commit_date="`git show --format='%cD' -s`" &&
touch --date="$commit_date" `git diff --name-only HEAD~`
fi
new_branch="$3"
if [ "$new_branch" = 1 ]; then
- commit_date="`git show --format='%cD' | head -1`" &&
+ commit_date="`git show --format='%cD' -s`" &&
touch --date="$commit_date" `git ls-files --cached`
fi