Permalink
Browse files

don't update the log unless code has changed

  • Loading branch information...
1 parent 1cab114 commit 9faa2ba7193a7bfd0a4157163c5ca2d9a1744f16 @fosslc committed Oct 16, 2010
Showing with 12 additions and 5 deletions.
  1. +12 −5 svn_import/importFromSvn.sh
@@ -164,12 +164,19 @@ else
exit 1
fi
- # Add the revision number to the log
- echo "${CurrentRev}" >> ${RevLog}
- git add ${RevLog}
+ git status | grep "nothing to commit"
+ if [ $? != 0 ]
+ then
+ echo "No change to tests"
+ else
- # Commit, with the same commit message
- git commit -F ${CommitMessage}
+ # Add the revision number to the log
+ echo "${CurrentRev}" >> ${RevLog}
+ git add ${RevLog}
+
+ # Commit, with the same commit message
+ git commit -F ${CommitMessage}
+ fi
done # Looping for each revision
fi

0 comments on commit 9faa2ba

Please sign in to comment.