Skip to content

Commit

Permalink
Fix too strict parsing of the svn output leading to an extra | in "Br…
Browse files Browse the repository at this point in the history
…aid: Executing `git rev-parse eb7b6dc |`"
  • Loading branch information
thomasdeniau authored and ttilley committed Mar 10, 2011
1 parent ab39536 commit d7170c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/braid/operations.rb
Expand Up @@ -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
Expand Down

0 comments on commit d7170c2

Please sign in to comment.