Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

makes tokenizing git-svn show-externals output more reliable #12

Merged
merged 2 commits into from

2 participants

@rcc

Sometimes show-externals will output a space between the -r and
. This patch removes that space.

rcc added some commits
@rcc rcc makes tokenizing git-svn show-externals output more reliable
Sometimes show-externals will output a space between the -r and
<revision>. This patch removes that space.
ea22ae9
@rcc rcc make git-svn-externals-update more usable c37c4ae
@andrep andrep merged commit cc6a2ff into andrep:master
@andrep
Owner

Thanks for the patch, Robert!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 28, 2011
  1. @rcc

    makes tokenizing git-svn show-externals output more reliable

    rcc authored
    Sometimes show-externals will output a space between the -r and
    <revision>. This patch removes that space.
  2. @rcc
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 5 deletions.
  1. +2 −1  git-svn-clone-externals
  2. +8 −4 git-svn-externals-update
View
3  git-svn-clone-externals
@@ -96,7 +96,8 @@ function is_excluded()
}
-git svn show-externals|grep -vE '#|^$'|while read -a words
+git svn show-externals|grep -vE '#|^$'| \
+ sed 's/\(-r\)[ ]*\([0-9]\{1,\}\)/\1\2/'|while read -a words
do
[ -z "${words[*]}" ] && continue
View
12 git-svn-externals-update
@@ -1,11 +1,15 @@
#!/bin/bash
-for dir in *; do
+toplevel_directory="$(git rev-parse --show-cdup)"
+[ -n "$toplevel_directory" ] && { echo "please run from the toplevel directory"; exit 1; }
+
+find .git_externals -type d -name .git | while read gitdir; do
+ dir=$(dirname "$gitdir")
if [ -d $dir ]; then
- cd $dir
+ pushd $dir
echo $dir
git svn fetch
git svn rebase
- cd ..
+ popd
fi
-done
+done
Something went wrong with that request. Please try again.