author | Clemens Buchacher <drizzd@aon.at> | |
Wed, 3 Sep 2008 18:55:55 +0000 (20:55 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Sep 2008 19:32:41 +0000 (12:32 -0700) | ||
commit | 44a68fd526a70f0aaf213143e22f1257f296e724 | |
tree | ca7712d5b61eb0de74fdd626bfc168a5fce9f9be | tree | snapshot |
parent | db3a95459cb873c302051b4b2b693be5ba248c13 | commit | diff |
clone: fix creation of explicitly named target directory
'git clone <repo> path/' (note the trailing slash) fails, because the
entire path is interpreted as leading directories. So when mkdir tries to
create the actual path, it already exists.
This makes sure trailing slashes are removed.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'git clone <repo> path/' (note the trailing slash) fails, because the
entire path is interpreted as leading directories. So when mkdir tries to
create the actual path, it already exists.
This makes sure trailing slashes are removed.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c | diff | blob | history | |
t/t5601-clone.sh | diff | blob | history |