From a562fe46820a453d370267ae28822666f4744215 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 6 Dec 2007 21:39:10 -0500 Subject: [PATCH] Fixed `sde ci` to commit changes on svn working trees correctly --- bin/sde-commit | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/sde-commit b/bin/sde-commit index fefa14d..2b92011 100755 --- a/bin/sde-commit +++ b/bin/sde-commit @@ -182,8 +182,15 @@ if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then read opt case "$opt" in - c*) if [ -n "$commit" ]; then + c*) if [ -z "$commit" ]; then + # don't commit yet + continue + elif [ -d ".git" ]; then + # git commit git commit --file $logfile && rm "$logfile" ; quit=1 + elif [ -d ".svn" ]; then + # svn commit + svn commit --file $logfile && rm "$logfile" ; quit=1 fi ;; d*) ${PAGER:-less -R} $tmpfile.diff ;; s*) cat $tmpfile.status ;;