Skip to content

Commit 1b07727

Browse files
committed
Minor bug fix to git-all for git-svn repos
1 parent 88ad23d commit 1b07727

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-all

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ module GitUpdate
4242
end
4343

4444
def GitUpdate.git_svn_repo g
45-
g.config['svn-remote.svn.url']
45+
g.config['svn-remote.svn.url'] rescue false
4646
end
4747

4848
def GitUpdate.fetch g, working_dir
4949
case
50-
when git_svn_repo(g)
50+
when git_svn_repo g
5151
lines = `git --git-dir='#{@git_dir}' svn fetch 2>&1`.split("\n")
5252
lines.reject! do |line|
5353
line =~ /^(W: |This may take a while|Checked through|$)/
@@ -81,7 +81,7 @@ module GitUpdate
8181
end
8282

8383
def GitUpdate.push_or_pull g, working_dir, branch
84-
remote = g.config["branch.#{branch.name}.remote"] || git_svn_repo(g)
84+
remote = g.config["branch.#{branch.name}.remote"] || git_svn_repo g
8585
if remote
8686
remote_sha =
8787
if git_svn_repo g

0 commit comments

Comments
 (0)