Skip to main content
Inspiring
May 11, 2018
Resuelto

Problems signing git commits using GPG Keys with Dreamweaver - commit fails

  • May 11, 2018
  • 2 respuestas
  • 2987 visualizaciones

Hi,

I am using git as my versioning system within Dreamweaver and also my code is pushed up to GiHub.  I am doing this using the Dreamweaver built in git support but I cant find a way to sign my commits with my GPG key.

Also, when trying to commit from the git panel within Dreamweaver, I get the following error:

"Git Commit Failed -

Error: fatal: cannot run gpg:  No such file or directory

error: gpg failed to sign the data

fatal: failed to write commit object"

However, if I open the Terminal (I can do this either by manually opening Terminal and navigating to the git repo or by clicking the Terminal button from the git panel in Dreamweaver) and manually run the command to sign my commit

the commit goes through perfectly fine and is correctly signed.  The proof of this is in the screenshots below:

and you can now see that my commit has been signed correctly

and on GitHub we see that the commit has been verified

Having just proven that I have my GPG keys set up correctly and that they ARE working, why does the commit fail if I try to do it using the commit button on the git panel inside of dreamweaver?  Is there a way that I can fix this?

Cheers

Jay

Este tema ha sido cerrado para respuestas.
Mejor respuesta de ayushrathi

Hi jaygtel​,

Could you please try below steps :

1. Open terminal/git bash from git panel in dreamweaver.

2. Type "gpg --list-keys" to list your keys.

3. Press Enter. This will list your keys.

4. Type git config user.signingkey "Your Signing Key".

5. Press Enter

6. Try committing your file from Dreamweaver.

Though the commit will work, but it will not be signed with your GPG key untill you do it through command line.

Dreamweaver build in git support does not offer signing your commits with the GPG key.

Please let us know, if you still face issue in committing your file.

Thanks and Regards

Ayush Rathi

2 respuestas

ayushrathiRespuesta
Adobe Employee
May 24, 2018

Hi jaygtel​,

Could you please try below steps :

1. Open terminal/git bash from git panel in dreamweaver.

2. Type "gpg --list-keys" to list your keys.

3. Press Enter. This will list your keys.

4. Type git config user.signingkey "Your Signing Key".

5. Press Enter

6. Try committing your file from Dreamweaver.

Though the commit will work, but it will not be signed with your GPG key untill you do it through command line.

Dreamweaver build in git support does not offer signing your commits with the GPG key.

Please let us know, if you still face issue in committing your file.

Thanks and Regards

Ayush Rathi

Preran
Community Manager
Community Manager
May 14, 2018

I am checking with the team. Will get back as soon as I hear from them.

Thanks,

Preran