summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af3f929)
raw | patch | inline | side by side (parent: af3f929)
author | Sven Verdoolaege <skimo@liacs.nl> | |
Wed, 1 Jun 2005 11:27:23 +0000 (13:27 +0200) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 8 Jun 2005 15:17:29 +0000 (08:17 -0700) |
cvsps seems to put a space after the tag name, so we remove it first.
cvs2git.c | patch | blob | history |
diff --git a/cvs2git.c b/cvs2git.c
index 06dd74b36840824d910cab72965b871f819a494e..97b4300519d24120a518a69a3f559ca0145d1435 100644 (file)
--- a/cvs2git.c
+++ b/cvs2git.c
{
const char *cmit_parent = initial_commit ? "" : "-p HEAD";
const char *dst_branch;
+ char *space;
int i;
printf("tree=$(git-write-tree)\n");
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;