Fossil SCM

The branch names should start with "refs/heads" (with an "s" at the end), not just "refs/head".

drh 2019-03-15 13:12 mirror-cmd
Commit d74371680d0b38f63d30e7a074dd9b4c7afa70e7483608c6179b1bb4ac180cb8
1 file changed +1 -1
+1 -1
--- src/export.c
+++ src/export.c
@@ -1055,11 +1055,11 @@
10551055
}else{
10561056
mirror_sanitize_git_name(zBranch);
10571057
}
10581058
10591059
/* Export the check-in */
1060
- fprintf(xCmd, "commit refs/head/%s\n", zBranch);
1060
+ fprintf(xCmd, "commit refs/heads/%s\n", zBranch);
10611061
fossil_free(zBranch);
10621062
iMark = mirror_find_mark(zUuid, 1);
10631063
fprintf(xCmd, "mark :%d\n", iMark);
10641064
fprintf(xCmd, "committer %s <%[email protected]> %lld +0000\n",
10651065
pMan->zUser, pMan->zUser,
10661066
--- src/export.c
+++ src/export.c
@@ -1055,11 +1055,11 @@
1055 }else{
1056 mirror_sanitize_git_name(zBranch);
1057 }
1058
1059 /* Export the check-in */
1060 fprintf(xCmd, "commit refs/head/%s\n", zBranch);
1061 fossil_free(zBranch);
1062 iMark = mirror_find_mark(zUuid, 1);
1063 fprintf(xCmd, "mark :%d\n", iMark);
1064 fprintf(xCmd, "committer %s <%[email protected]> %lld +0000\n",
1065 pMan->zUser, pMan->zUser,
1066
--- src/export.c
+++ src/export.c
@@ -1055,11 +1055,11 @@
1055 }else{
1056 mirror_sanitize_git_name(zBranch);
1057 }
1058
1059 /* Export the check-in */
1060 fprintf(xCmd, "commit refs/heads/%s\n", zBranch);
1061 fossil_free(zBranch);
1062 iMark = mirror_find_mark(zUuid, 1);
1063 fprintf(xCmd, "mark :%d\n", iMark);
1064 fprintf(xCmd, "committer %s <%[email protected]> %lld +0000\n",
1065 pMan->zUser, pMan->zUser,
1066

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button