Permalink
Browse files

Improve changes line generation for git-svn

  • Loading branch information...
1 parent 1f46313 commit 7e9e52a25e887f5486247f21b2506da462b8c85e @sickill committed Oct 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 git-dude
View
@@ -49,10 +49,11 @@ while true; do
repo_name=$(basename $dir_name .git)
cd "$dir_name"
+ changes=""
if [[ $(grep svn-remote .git/config 2>/dev/null) ]]; then
revs=$(git svn fetch 2>/dev/null | grep -F -- ' = ' | awk '{ print $3 }')
if [[ -n "$revs" ]]; then
- changes="$(echo "$revs" | head -1)$changes~..$changes$(echo "$revs" | tail -1)"
+ changes="$(echo "$revs" | head -1)~..$(echo "$revs" | tail -1)"
fi
else
changes=$(git fetch 2>&1 | grep -F -- '->')

0 comments on commit 7e9e52a

Please sign in to comment.