foreach (Rules::Repository::Branch branchRule, rule.branches) {
Branch branch;
branch.branchFrom = branchRule.branchFrom;
- if (!branch.branchFrom.startsWith("refs/heads/"))
+ if (!branch.branchFrom.startsWith("refs/"))
branch.branchFrom.prepend("refs/heads/");
branch.isCreated = false;
end = branches.end();
for ( ; it != end; ++it) {
QString branchRef = it.key();
- if (!branchRef.startsWith("refs/heads/"))
+ if (!branchRef.startsWith("refs/"))
branchRef.prepend("refs/heads/");
bool branchExists;
{
QByteArray branchRef = branch;
- if (!branchRef.startsWith("refs/heads/"))
+ if (!branchRef.startsWith("refs/"))
branchRef.prepend("refs/heads/");
QTextStream s(&repository->fastImport);