Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't update the log unless code has changed

  • Loading branch information...
commit 9faa2ba7193a7bfd0a4157163c5ca2d9a1744f16 1 parent 1cab114
@fosslc authored
Showing with 12 additions and 5 deletions.
  1. +12 −5 svn_import/importFromSvn.sh
View
17 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
Please sign in to comment.
Something went wrong with that request. Please try again.