Skip to content

fix git log: use raw body %B #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions svn2github.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def is_repo_empty(git_dir):


def get_svn_info_from_git(git_dir):
result = run_git_cmd(["log", "-1", "HEAD", "--pretty=%b"], git_dir=git_dir)
result = run_git_cmd(["log", "-1", "HEAD", "--pretty=%B"], git_dir=git_dir)

pattern = re.compile("^git-svn-id: (.*)@([0-9]+) ([0-9a-f-]{36})$".encode())

Expand All @@ -50,7 +50,7 @@ def get_svn_info_from_git(git_dir):
if m:
return GitSvnInfo(svn_url=m.group(1), svn_revision=int(m.group(2)), svn_uuid=m.group(3))

return Svn2GithubException("git log -1 HEAD --pretty=%b output did not specify the current revision")
return Svn2GithubException("git log -1 HEAD --pretty=%B output did not specify the current revision")


def git_svn_init(git_svn_info, git_dir):
Expand Down