Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: andrep/git-svn-clone-externals
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: jcoby/git-svn-clone-externals
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 6, 2009

  1. Updated to work with git 1.6 and to work with externals in the "url" …

    …"revision" "path" order.
    jcoby committed Jan 6, 2009
    Copy the full SHA
    3f87fea View commit details
Showing with 3 additions and 4 deletions.
  1. +3 −4 git-svn-clone-externals
7 changes: 3 additions & 4 deletions git-svn-clone-externals
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ git svn propget svn:externals . | while read -a words
do
[ -z "${words[*]}" ] && continue

local_directory="${words[0]}"
local_directory="${words[1]}"
revision=""
remote_url="${words[1]}"
remote_url="${words[0]}"

if [ -n "${words[2]}" ]; then
revision="${words[1]}"
@@ -22,8 +22,7 @@ do

mkdir -p .git_externals

(cd .git_externals \
&& git svn clone "$revision" "$remote_url" "$local_directory")
(cd .git_externals && git svn clone $revision "$remote_url" "$local_directory")

ln -s .git_externals/"$local_directory" "$local_directory"