Skip to content

gpg unable to generate absolute path for windows drives #1869

Closed
@cmllamas

Description

@cmllamas
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.19.1.windows.1
cpu: x86_64
built from commit: 11a3092e18f2201acd53e45aaa006f1601b6c02a
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.16299.665]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Path Option: BashOnly
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
Enable Builtin Rebase: Disabled
Enable Builtin Stash: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?
I'm using git-repo adapted for windows

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
bash
I'm running 'repo init', ultimately the problematic command is:
$ gpg --homedir='C:\Users\uidw3762/.repoconfig-esrlabs\gnupg' --import
  • What did you expect to occur after running these commands?
This is the output on Git-2.18.0-64...
$ gpg --homedir='C:\Users\uidw3762/.repoconfig-esrlabs\gnupg' --import key
gpg: keyring `C:\Users\uidw3762/.repoconfig-esrlabs\gnupg/secring.gpg' created
gpg: keyring `C:\Users\uidw3762/.repoconfig-esrlabs\gnupg/pubring.gpg' created
gpg: C:\Users\uidw3762/.repoconfig-esrlabs\gnupg/trustdb.gpg: trustdb created
gpg: key F494ADA3: public key "Repo Maintainer <[email protected]>" imported
gpg: key B566A02A: public key "E.S.R.Labs <[email protected]>" imported
gpg: Total number processed: 2
gpg:               imported: 2  (RSA: 2)

$ gpg --version
gpg (GnuPG) 1.4.22
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  • What actually happened instead?
$ gpg --homedir='C:\Users\uidw3762/.repoconfig-esrlabs\gnupg' --import key
gpg: keyblock resource '/d/vuc/C:\Users\uidw3762/.repoconfig-esrlabs\gnupg/pubring.kbx': No such file or directory
gpg: no writable keyring found: Not found
gpg: error reading 'key': General error
gpg: import from 'key' failed: General error
gpg: Total number processed: 0

$ gpg --version
gpg (GnuPG) 2.2.9-unknown
libgcrypt 1.8.3
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions