aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2010-07-09 22:10:57 +0530
committerRaja R Harinath <harinath@hurrynot.org>2010-07-09 22:10:57 +0530
commit45d4785557290facfa344e7fb4586fca41a84bbe (patch)
treea49fcda03060da3a5a9b689e37c0d9b9c83fe97b /src
parent6d3ad9b25957de52c1f74dfcfca813c271b122cc (diff)
downloadsvn2git-45d4785557290facfa344e7fb4586fca41a84bbe.tar
svn2git-45d4785557290facfa344e7fb4586fca41a84bbe.tar.gz
svn2git-45d4785557290facfa344e7fb4586fca41a84bbe.tar.bz2
svn2git-45d4785557290facfa344e7fb4586fca41a84bbe.tar.xz
svn2git-45d4785557290facfa344e7fb4586fca41a84bbe.zip
Ensure deleteBranch() actually writes to git-fast-import
Use startFastImport to start off the git-fast-import process if necessary.
Diffstat (limited to 'src')
-rw-r--r--src/repository.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index cc96e7b..bd2931a 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -257,6 +257,7 @@ void Repository::createBranch(const QString &branch, int revnum,
void Repository::deleteBranch(const QString &branch, int revnum)
{
+ startFastImport();
QByteArray branchRef = branch.toUtf8();
if (!branchRef.startsWith("refs/"))
branchRef.prepend("refs/heads/");