Permalink
Browse files

Fix too strict parsing of the svn output leading to an extra | in "Br…

…aid: Executing `git rev-parse eb7b6dc |`"
  • Loading branch information...
1 parent ab39536 commit d7170c271c96d3d6ab10ef07108a42eb01b8aaab @thomasdeniau thomasdeniau committed with ttilley Jul 12, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/braid/operations.rb
@@ -320,7 +320,8 @@ def self.command; "git svn"; end
def commit_hash(remote, revision)
out = invoke(:log, "--show-commit --oneline", "-r #{revision}", remote)
- part = out.to_s.split(" | ")[1]
+ part = out.to_s.split("|")[1]
+ part.strip!
raise UnknownRevision, "r#{revision}" unless part
git.rev_parse(part)
end

0 comments on commit d7170c2

Please sign in to comment.