Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
34.69k stars 1.97k forks source link

Generated git config does not populate user's email #5992

Open JenniferDwinall opened 1 year ago

JenniferDwinall commented 1 year ago

Expected Behavior

contents of git/config:

[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true

[user] email = jennifer.dwinall@gmail.com name = JenniferDwinall [remote "origin"] fetch = +refs/heads/:refs/remotes/origin/ url =XXX

Actual Behavior

contents of git/config:

[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true

[user] email = name = JenniferDwinall [remote "origin"] fetch = +refs/heads/:refs/remotes/origin/ url =XXX

Reproduction Steps

Click "Setup Git Sync" Click "Authenticate with GitHub" Paste the GitHub UI from the browser and "click sync" Click "close"

In terminal, cd to /Users/XXX/Library/Application Support/Insomnia/version-control/git

In the latest generated directory, open git/config. You will see the email is not populated there.

Is there an existing issue for this?

Additional Information

Version: Insomnia 2023.2.2 Build date: 5/17/2023 OS: Darwin arm64 22.3.0 Electron: 22.0.0 Node: 16.17.1 V8: 10.8.168.20-electron.0 Architecture: arm64

Insomnia Version

2023.2.2

What operating system are you using?

macOS

Operating System Version

Darwin FDG-GPD9QGYJQ7 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

JenniferDwinall commented 1 year ago

I also tried setting up Git Sync using an authentication token on github. The git config file is populated correctly there.

I created a Personal access tokens (classic), selected every scope checkbox but it did not work. I would get 403 & 401 error codes when I tried to create a branch and push it up to origin.