Browse Source

Fixed `sde ci` to correctly detect unknown version control systems when calculating the diff

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

+ 2
- 2
bin/sde-commit

@ -133,7 +133,7 @@ done )
cd "$SDEROOT/$root" cd "$SDEROOT/$root"
# cache stats and diff # cache stats and diff
if [ ".git" ]; then
if [ -d ".git" ]; then
# git status # git status
git-diff-index -M --color --cached --stat=80,65 HEAD > $tmpfile.status git-diff-index -M --color --cached --stat=80,65 HEAD > $tmpfile.status
git-diff-index -M --color --cached -p HEAD | sed -e "s,^\(.\[1m\|\)\(---\|\+\+\+\) [ab]/,\1\2 $root/," > $tmpfile.diff git-diff-index -M --color --cached -p HEAD | sed -e "s,^\(.\[1m\|\)\(---\|\+\+\+\) [ab]/,\1\2 $root/," > $tmpfile.diff
@ -144,7 +144,7 @@ if [ ".git" ]; then
awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile awk -f $SDEROOT/lib/sde-commit/commit-message.awk > $logfile
fi fi
else else
echo_abort "$root: unknown version control system."
echo_abort 3 "$root: unknown version control system."
fi fi
if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then

Loading…
Cancel
Save