Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fdaf076

Browse files
apps/svn2git-vbox: Fix order of author and committer lines for the commit fast-import command, author needs to come before committer, bugref:10900
svn:sync-xref-src-repo-rev: r171252
1 parent f8fa195 commit fdaf076

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎src/apps/svn2git-vbox/git.cpp‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: git.cpp 110524 2025-08-04 09:36:44Z alexander.eichner@oracle.com $ */
1+
/* $Id: git.cpp 111660 2025-11-12 11:58:30Z alexander.eichner@oracle.com $ */
22
/** @file
33
* svn2git - Convert a svn repository to git.
44
*/
@@ -792,14 +792,16 @@ DECLHIDDEN(int) s2gGitTransactionCommit(S2GREPOSITORYGIT hGitRepo, const char *p
792792
uint64_t const idMark = pThis->idCommitMark++;
793793
int rc = s2gScratchBufPrintf(&pThis->BufScratch,
794794
"commit refs/heads/%s\n"
795-
"mark :%RU64\n"
796-
"committer %s <%s> %RI64 +0000\n",
797-
pszBranch, idMark,
798-
pszCommitter, pszCommitterEmail, cEpochSecs);
795+
"mark :%RU64\n",
796+
pszBranch, idMark);
799797
if (RT_SUCCESS(rc) && pszAuthor && pszAuthorEmail)
800798
rc = s2gScratchBufPrintf(&pThis->BufScratch,
801799
"author %s <%s> %RI64 +0000\n",
802800
pszAuthor, pszAuthorEmail, cEpochSecs);
801+
if (RT_SUCCESS(rc))
802+
rc = s2gScratchBufPrintf(&pThis->BufScratch,
803+
"committer %s <%s> %RI64 +0000\n",
804+
pszCommitter, pszCommitterEmail, cEpochSecs);
803805
if (RT_SUCCESS(rc))
804806
rc = s2gScratchBufPrintf(&pThis->BufScratch,
805807
"data %zu\n"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /