Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cvs2git.c')
-rw-r--r--cvs2git.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cvs2git.c b/cvs2git.c
index 06dd74b368..97b4300519 100644
--- a/cvs2git.c
+++ b/cvs2git.c
@@ -115,6 +115,7 @@ static void commit(void)
{
const char *cmit_parent = initial_commit ? "" : "-p HEAD";
const char *dst_branch;
+ char *space;
int i;
printf("tree=$(git-write-tree)\n");
@@ -147,6 +148,12 @@ static void commit(void)
printf("echo $commit > .git/refs/heads/'%s'\n", dst_branch);
+ space = strchr(tag, ' ');
+ if (space)
+ *space = 0;
+ if (strcmp(tag, "(none)"))
+ printf("echo $commit > .git/refs/tags/'%s'\n", tag);
+
printf("echo 'Committed (to %s):' ; cat .cmitmsg; echo\n", dst_branch);
*date = 0;