This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
"Clone succeeded, but checkout failed" because of file named ...
#208
Closed
Description
A repo I'm working on has a file called ...
in HEAD. git clone
goes badly
> git clone https://github.com/matt-hickford/httpbin.git
Cloning into 'httpbin'...
remote: Reusing existing pack: 1444, done.
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 1455 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (1455/1455), 219.23 KiB | 384.00 KiB/s, done.
Resolving deltas: 100% (826/826), done.
Checking connectivity... done.
error: unable to create file httpbin/templates/... (Is a directory)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
git clone
worked fine on Linux, so is this a bug?
Activity
kusma commentedon May 30, 2014
Nope, this is not a bug. On Windows, a file name cannot end with a dot.
t-b commentedon May 30, 2014
Have also a look at https://github.com/t-b/git-pre-commit-hook-windows-filenames.
hickford commentedon May 30, 2014
Thank you both.
kusma commentedon May 31, 2014
@t-b: Nice, I was not aware!
sanjeevkalakuntla commentedon Jan 17, 2017
Thanks it is working.