summaryrefslogtreecommitdiff
path: root/rbtools
diff options
context:
space:
mode:
authorChristian Hammond <chipx86@chipx86.com>2010-01-12 01:37:46 -0800
committerChristian Hammond <chipx86@chipx86.com>2010-01-12 01:39:43 -0800
commit7c2e3186477c529008fc69921e39509c1c93ae06 (patch)
tree9f77b56c2bacc53f6f506711fe0e3f3a716213cd /rbtools
parent595d137d564bd553c00d25f2be39ceaa262f4f1d (diff)
Fix an assumption that Git master represents SVN trunk.
post-review makes an assumption that the 'master' branch in a Git repository represents SVN's 'trunk' when using git-svn. Now it uses the calculated parent branch, which may be 'master' or may be some other branch, depending on the repository setup. Patch by Mike Crute Reviewed at http://reviews.reviewboard.org/r/1307/
Diffstat (limited to 'rbtools')
-rwxr-xr-xrbtools/postreview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbtools/postreview.py b/rbtools/postreview.py
index 9b422c4..a313a79 100755
--- a/rbtools/postreview.py
+++ b/rbtools/postreview.py
@@ -2160,7 +2160,7 @@ class GitClient(SCMClient):
svn diff would generate. This is needed so the SVNTool in Review
Board can properly parse this diff.
"""
- rev = execute(["git", "svn", "find-rev", "master"]).strip()
+ rev = execute(["git", "svn", "find-rev", parent_branch]).strip()
if not rev:
return None