From 45d4785557290facfa344e7fb4586fca41a84bbe Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Fri, 9 Jul 2010 22:10:57 +0530 Subject: Ensure deleteBranch() actually writes to git-fast-import Use startFastImport to start off the git-fast-import process if necessary. --- src/repository.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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/"); -- cgit v1.2.1