You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When gh is run it moves .config/gh into the current directory under a directory named ~.
Steps to reproduce the behaviour
have ~/.config symlinked to another folder containing a gh/config
run gh repo clone in other directory (haven't checked if its caused by other commands)
Expected vs actual behaviour
gh should use the symlinked ~/.config folder and not move it to a local folder
gh moves ~/.config/gh to $PWD/~/.config/gh
Logs
How my .config folder is organized
❯ ls ~/.config/
d1/ d2/ d3@ gh/
the cause
❯ pwd
/Users/IanEdington/repos
❯ gh <Tab># any `gh` command, even just triggering autocomplete
the result
❯ ls ~/.config/
d1/ d2/ d3@
# gh directory is missing
❯ ls
icloud-photo-sync/ ~/
# new '~' directory created where ever the gh command is executed
❯ ls "$PWD/~/.config/gh"
config.yml hosts.yml
# new '~' directory contains only the `gh` folder and sub-files
gh files
config.yml
# What protocol to use when performing git operations. Supported values: ssh, httpsgit_protocol: ssh# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.editor: !!null vim# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabledprompt: enabled# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.pager:
# Aliases allow you to create nicknames for gh commandsaliases:
co: pr checkout
hosts.yml
github.com:
git_protocol: ssh
debugging notes
latest version available through homebrew (2.13.0)
happens in both bash and zsh
The text was updated successfully, but these errors were encountered:
@IanEdington Hmmm that is odd, I was unable to reproduce this locally. I do suspect that this is a bug with the code that was meant to automatically migrate legacy config files into our current config file format. Fortunately, #5771 removes that functionality as there shouldn't be any more users with legacy config files. I am going to close this issue for now in anticipation that the next release will fix this issue. @IanEdington if it does not, please feel free to comment here and we will investigate further 👍
Describe the bug
When
gh
is run it moves.config/gh
into the current directory under a directory named~
.Steps to reproduce the behaviour
gh/config
gh repo clone
in other directory (haven't checked if its caused by other commands)Expected vs actual behaviour
gh should use the symlinked ~/.config folder and not move it to a local folder
gh moves
~/.config/gh
to$PWD/~/.config/gh
Logs
How my
.config
folder is organized❯ ls ~/.config/ d1/ d2/ d3@ gh/
the cause
the result
gh files
config.yml
hosts.yml
debugging notes
bash
andzsh
The text was updated successfully, but these errors were encountered: