author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Thu, 24 Apr 2008 18:06:36 +0000 (20:06 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 30 Apr 2008 06:11:57 +0000 (23:11 -0700) | ||
commit | 59b0c24daaac3c2203dd8ac2de4dfcad909481a5 | |
tree | 47838d6ee4f48f263e5c02a9a410d101790989f2 | tree | snapshot |
parent | c8af1de9cfa0a5678ae766777e0f905e60b69fda | commit | diff |
git-svn: detect and fail gracefully when dcommitting to a void
The command
git svn clone (URL of an empty SVN repo here)
works, creates an empty git repository. I can perform the initial
commit there, but then, "git svn dcommit" says :
Use of uninitialized value in concatenation (.) or string at .../git-svn line 414.
Committing to ...
Unable to determine upstream SVN information from HEAD history
I guess a correct management of the initial commit in git-svn would be
hard to implement, but at least, the error message can be improved.
First step is something like the patch below, and better would be for
"git svn clone" to warn that it won't be able to do much with the
cloned repo.
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The command
git svn clone (URL of an empty SVN repo here)
works, creates an empty git repository. I can perform the initial
commit there, but then, "git svn dcommit" says :
Use of uninitialized value in concatenation (.) or string at .../git-svn line 414.
Committing to ...
Unable to determine upstream SVN information from HEAD history
I guess a correct management of the initial commit in git-svn would be
hard to implement, but at least, the error message can be improved.
First step is something like the patch below, and better would be for
"git svn clone" to warn that it won't be able to do much with the
cloned repo.
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c | diff | blob | history | |
git-svn.perl | diff | blob | history |