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
The git config -f
command doesn't work with a file of network folder for me.
#241
Comments
I see the |
Windows has no problems interpreting
I think the same applies to #239. |
Oh.... Problem is not solved. It works for the first attempting only. I will write video. I am thinking this is a bug. |
Look this video about the problem: http://www.youtube.com/watch?v=kudZ8jTg7Ww&feature=youtu.be |
Is it a bug? |
@Andrey-Bushman have you looked in detail at @kostix's answer? I believe that his advice essentially resolves this ticket. |
No, using |
I did not watch the video (Andrey, posting a video is rather pointless in most cases as it requires context switching, and it's not googleable), but writing to a config file on a share does not work for me either:
I did not see the code (yet) but I have a vague feeling that Git, which had been engeneered by professionals, does not attempt to blindly overwrite the file with the new content, but rather creates another one in the same directory, May be this atomic rename is broken in GfW because it does not use In either case all this are just my wild guesses, unfortunately. |
It can be used as workaround of the bug: |
This seems to be the code in question: We call fclose immediately followed by MoveFileExW. Maybe this is too fast for Windows shares? |
I don't know, I am not expert in C and OS Windows. To get the expected result is important for me. My previous message does it. I read the |
I solved my problem with alias here: http://stackoverflow.com/questions/31447193/can-i-use-a-set-of-commands-external-and-internal-for-a-git-alias |
@Andrey-Bushman couldn't you just have pasted the relevant parts in this ticket, to make things easier for everybody else? |
Ok. I wrote such script:
The script file I located in the network also. Now it can be launched either through Git Bash directly:
or through the alias
I can launch this:
It works fine for me. |
I cannot reproduce. Works perfectly for me. :-( |
Did you see my video? I showed, what sometimes it works for me. The keyword is sometimes... Both variants of behaviour are present on the video. |
@Andrey-Bushman A video is probably not the most appropriate way to relate your problem. And if it works sometimes you might want to try to figure out what are the circumstances when it works vs when it does not, and report back the findings. |
@dscho, I didn't reveal regularity of this behavior. Also, I haven't time for this spending, sorry. :( Video shows a problem for people, whom this problem isn't reproduced. It shows both variants of working (successed\failed). Also I showed a workaround. So, I found a problem; I reported about it; I even recorded video for who doesn't have this problem; I showed a workaround (but it is not a fix of the bug). What more? I won't persuade developers to correct it. If on your computer the problem isn't reproduced and therefore you consider that it doesn't exist, then let will be such final of the "bug" (or not the "bug" if you want this variant). I don't force you to watch this video. It can be interesting to developers which will want to fix this problem. I think that there is no sense continue to discuss of this topic, therefore I close it.
It successfully worked for me few times only. The same problem I got for other computers also. P.S. If the video is interesting for nobody then I can delete it. |
The problem fixed in the Git for Windows v.2.5.2. |
Git for Windows 2.4.5 x64.
It works fine with a local config-file:
git config -f "d:\\dev\\settings\\gitconfig.txt" http.proxy http://@proxy2:8080
I need to do the same with a config-file which is located at the network in our domain. This config-file is common for all developers of our company and has common settings (the proxy settings, for example). I have full rights for working with that directory. This is my directory only. It was created special for me by admin (an hour ago) and only I have full access to it.
I launch this:
git config -f "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt" http.proxy http://@proxy2:8080
But it doesn't work. I see the message:
if I press
y
then I get the same message again... I reloaded my computer, but it didn't help.Through Windows Explorer I create, edit, remove and rename files and directories without problems in this location.
Why does it happen and how can I fix it?
This works fine (from Git Bash): :
echo 123 > "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt"
and this works fine too:
mv "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig.txt" "\\\\hyprostr\\dfs\\groups\\developers\\settings\\gitconfig2.txt"
So, I don't understand the reason of the problem... :(((
The text was updated successfully, but these errors were encountered: