-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git clone not works with some ramdisk and ntfs #1405
Comments
Seems it's an known issue that some simple ramdisk like imdisk not works with And found an workaround is to set May related to #1007? |
I would very much appreciate it if you could provide me with a command-line how to call |
@dscho |
@yyjdelete thanks. I did that (did not elevate, so the formatting did not work, but Windows helpfully brought up a dialog whether I want to format the new drive). This is how it looks, though: Q:\>git clone --depth 1 file:///C:\git-sdk-64\usr\src\build-extra bbb
Cloning into 'bbb'...
remote: Counting objects: 287, done.
remote: Compressing objects: 100% (256/256), done.
Receiving objects: 100% (287/287), 5.97 MiB | 11.13 MiB/s, done.
remote: Total 287 (delta 74), reused 132 (delta 17)
Resolving deltas: 100% (74/74), done. It also works in Git Bash... FWIW when I call
|
I use the same version of imdisk, not sure what happened. |
That is set automatically when initializing a repository... Git tries to create a symbolic link in |
I mean the global/system config(or the one set by setup of GFW), instead of the local config. |
@dscho For me, this problem doesn't come up with To create the RAM drive:
To use it:
|
@mehrdadn thank you for the reproducer! However, it does not reproduce for me... me@work MINGW64 ~/
$ imdisk -a -s 64M -o rem -m X: -p "/FS:NTFS /Q /S:disable /Y"
The type of the file system is RAW.
The new file system is NTFS.
QuickFormatting 64.0 MB
Creating file system structures.
Format complete.
64.0 MB total disk space.
61.8 MB are available.
Creating device...
Created device 0: X: -> Image in memory
Formatting disk X:...
Notifying applications...
Done.
me@work MINGW64 ~/
$ cd /x/
me@work MINGW64 /x
$ mkdir Test
me@work MINGW64 /x
$ cd Test
me@work MINGW64 /x/Test
$ git init
Initialized empty Git repository in X:/Test/.git/
me@work MINGW64 /x/Test (master)
$ git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track) Also in CMD: C:\Users\me>x:
X:\>cd Test
X:\Test>git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track) This is with |
@dscho |
That's so bizarre. I have |
@yyjdelete nope, already set: $ git config core.symlinks
true |
Nope it seems the problem is there on the latest snapshot too (as well as
|
@mehrdadn fails with:
|
Yeah that's what's supposed to happen. (Also oops, the backslash. :-) ) |
Aaaah! $ cat /x/Test/.git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
|
But mine is |
So what that means is that my system failed to create a symlink on that drive, and set But there is also a |
Indeed, I just single-stepped through |
Nope it succeeds and returns the same path for me too. I wish I could figure out exactly where |
I have a debug build, but that is built using GCC... you use Visual Studio, right? You only need the |
It seems more painful than that, it seems like I need to also build |
Never mind, I finally got it to build. It's very painful though and messed up my environment, so I I'll probably revert it/hope I don't have to do it again :-) here's the stack trace:
|
OH... did I never mention I have |
Aha! I don't have that set. |
/remind me to have a look in two weeks (i.e. after v2.17.0 final) |
@dscho set a reminder for Apr 6th 2018 |
@MartyIX no, unfortunately it does not. Have you set that |
Please note that I cannot see such updates from my mail client, therefore I cannot easily comment on those updates. I can only respond easily to new comments. |
The |
I'm confused, why is it surprising that the issue is still present in |
👋 @dscho, have a look (i.e. after v2.17.0 final) |
I have repoduction this problem on Git 2.19.1 (2.19.1.windows.1) on OSFMount ramdisk (2.0 (1001) 64bit for windows 8). OSFMount freeware based on imdisk. I create simple example example.
Reproduction steps Variant 1
Reproduction steps Variant 2
|
Much as I would like, I cannot justify working on this project, as the target audience is such a small fraction of Git for Windows users. Seeing as nobody else stepped up to the task in over a year, I'll just close this ticket. |
+1 same issue here. Using imDisk as ramdisk. Tried the latest snapshot
|
@klodoma are you stepping up to the challenge? Assuming that this is what you are talking about, here is some guidance:
Note that I assume that the problem happens somewhere in If the debugger does not stop in that function but still shows the error message, it can mean one of two things:
If the latter is the case, you might want to instrument the code by inserting a call to Please let me know how you fare. |
Yes, I'll have a look at it, just to find the time. Thanks for the detailed info, if I need more help, I'll cry out loud. |
I took a stab at solving this.
@dscho You can take ownership/copyright/etc. of it and edit/merge it in as desired. |
Actually, I can't. Where I live, authorship cannot be transferred, so there are legal reasons I can't. Also, this change would eventually need to be submitted to upstream Git, which is very clear as to what a "Signed-off-by:" means: the contributor testifies that they are permitted, in a legal sense, to contribute the change. I would not be able to do that for you. Therefore, I am hopeful that @klodoma will bear the torch from here on out. Besides, re-implementing |
Sure, I don't know what it used to be like. To me the easiest & safest route would be to just keep using the original |
Yeah both would fail here. In general any usage of |
Just a remark from my side ... I'll have a look at this just to find some time for it. |
@dscho you could re-open this ticket... I think it's rolling again :) |
I fear that it rolled to a grinding halt. |
Setup
Also failed with some old stable versions of win10.
defaults?
to the issue you're seeing?
Clone into an ramdisk which formated to NTFS.
Details
bash/cmd
Minimal, Complete, and Verifiable example
this will help us understand the issue.
Clone successful.
Clone failed with the error message below, but the
.git
folder is created. Bothgit status
andgit checkout -f HEAD
works.URL to that repository to help us with testing?
** insert URL here **
The text was updated successfully, but these errors were encountered: