Browse Source

Fixed `sde ci` to commit changes on svn working trees correctly

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
a562fe4682
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      bin/sde-commit

+ 8
- 1
bin/sde-commit

@ -182,8 +182,15 @@ if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then
read opt read opt
case "$opt" in 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 git commit --file $logfile && rm "$logfile" ; quit=1
elif [ -d ".svn" ]; then
# svn commit
svn commit --file $logfile && rm "$logfile" ; quit=1
fi ;; fi ;;
d*) ${PAGER:-less -R} $tmpfile.diff ;; d*) ${PAGER:-less -R} $tmpfile.diff ;;
s*) cat $tmpfile.status ;; s*) cat $tmpfile.status ;;

Loading…
Cancel
Save