Automatic commit at Wed Jul 25 17:00:01 WST 2012
authorSam Moore <[email protected]>
Wed, 25 Jul 2012 09:00:01 +0000 (17:00 +0800)
committerSam Moore <[email protected]>
Wed, 25 Jul 2012 09:00:01 +0000 (17:00 +0800)
update.sh

index 0eeb115..ec8888f 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -9,7 +9,6 @@ cd "$directory"
 # Need to do this too. Apparently
 ##eval `ssh-agent -s`
 
-echo "Committing at $(date)" >> commits.log
 git add update.sh
 git add papers
 git add research
@@ -24,6 +23,7 @@ git add course/semester2
 
 git commit -m "Automatic commit at $(date)"
 if [ "$?" == 0 ]; then
+       echo "Commit at $(date)" >> commits.log
        git push git.ucc 2>&1 >> commits.log
 fi
 

UCC git Repository :: git.ucc.asn.au