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
.gnupg directory created at root of C drive #414
Comments
Please do respect our bug reporting guidelines linked from our home page. Pretty much all information about your setup is missig. |
In addition:
I suspect that you meant to include a backslash between USERNAME and .gnupg. Also, what kind of symlink are you talking about? An MSys2 one? What command did you use to create it? Please clarify, and please do not make me ask for every detail of your setup specifically but volunteer this information liberally. This interaction would be very tedious otherwise. |
Sorry about the missing info.
Good catch about the missing backslash. My bad. Hopefully this also helps (truncated output to just the relevant stuff): Also likely relevant is that I Gpg4win 2.2.5 installed. From that I have GNU Privacy Assistant (GPA) 0.9.7 [8ce9480] and Kleopatra 2.2.0-gita3c9200 (2015-06-09) installed. |
I guess that one is the culprit. I do not know how SourceTree opens the Git Bash, but we had reports before that it does not do it right.
If I remember correctly, MSys2 programs do not handle symbolic links created with |
Using that info, I ran a couple of small tests.
Next I wanted to verify if my symlink was causing any trouble.
These tests lead me to believe that the problem is with SourceTree, not the symlink. It appears that git for windows follows the symlink as long as SourceTree didn't launch it. From there I did a little investigation into how SourceTree launches the git terminal. According to Processes Explorer, when SourceTree launches git terminal, it calls
When I start it from the start menu, it calls
SourceTree automatically sets the current directory to the folder associated with the git repo. From the start menu, I need to cd to the proper directory, but after that Process Explorer shows both of their current directories as
|
What do |
From git bash launched from the start menu: From shell launched from SourceTree: Looks like $HOME might be the problem. |
That is most likely the problem... |
Unfortunately, simple exporting |
I added a comment to https://jira.atlassian.com/browse/SRCTREEWIN-3704 because i believe that would let me work around the issue. I'll try some more experiments tonight. |
I found a hacky workaround. I set a I don't know if this makes any difference, but I run as a standard user with UAC enabled. I have an admin user that I use UAC elevation to run installers as. If |
No, it should actually be set by MSys2 itself, based on the Now, the question is where this is set incorrectly... |
@PRabahy remember how I asked you to follow the guidelines to explain your setup? I guess that was really crucial, after all. The SourceTree thing was really important to know. I now narrowed it down in two days of tedious debugging and have a fix. Please, next time, make it easier for me by really trying to get me as quickly to reproduce the problem you are experiencing (i.e. without having to ask for many additional details; just give them all to me, you will have to describe all the details anyway). |
Originally I didn't realize that SourceTree was involved at all. Thanks for all your hard work debugging this! It sounds like you got the issue nailed down, but if you need someone to test it just send a beta my way. |
Verified fixed in 2.6.0. |
Thanks for verifying and reporting back. |
This branch is exactly git-for-windows#410, but with one more commit: enabling the sparse index by default in d59110a. Having this in the `vfs-2.33.0` branch helps build confidence that the sparse index is doing what it should be doing by running in the Scalar functional tests and in our test branches. If we want to cut a new `microsoft/git` release without enabling the sparse index, we can simply revert this commit.
I just ran
git log --show-signature
and got
gpg: directory
/c/.gnupg' created gpg: new configuration file
/c/.gnupg/gpg.conf' createdgpg: WARNING: options in
/c/.gnupg/gpg.conf' are not yet active during this run gpg: keyring
/c/.gnupg/pubring.gpg' createdI'm not sure if this is a bug or misconfiguration, but I didn't expect it to create a new gpg.conf file. I already have a symlink at C:\Users\USERNAME.gnupg pointing to C:\Users\USERNAME\AppData\Roaming\gnupg. My expectation was that git-for-windows would have used either of those paths.
The text was updated successfully, but these errors were encountered: