Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve changes line generation for git-svn

  • Loading branch information...
commit 7e9e52a25e887f5486247f21b2506da462b8c85e 1 parent 1f46313
@sickill authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  git-dude
View
3  git-dude
@@ -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 -- '->')
Please sign in to comment.
Something went wrong with that request. Please try again.