Skip to content

Commit

Permalink
ghq: fix ghq.root config for ghq >= v0.17.3
Browse files Browse the repository at this point in the history
This addresses an breaking change made in x-motemen/ghq#240
  • Loading branch information
midchildan committed Jan 15, 2020
1 parent 9ad40bf commit 0a6e5de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home/.config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
newNormal = green bold
newHighlight = green bold 22
[ghq]
root = ~/Documents/src/repos
root = ~/Documents/src/go/src
root = ~/Documents/src/repos
2 changes: 1 addition & 1 deletion home/.local/bin/git-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main() {
local remote_name="$1"
local remote_url="$2"

local repo_root="$(git config --get-all ghq.root | head -n1)"
local repo_root="$(git config --get ghq.root)"
local repo_root="${repo_root/#\~/$HOME}"
local local_path="$(git rev-parse --show-toplevel)"

Expand Down

0 comments on commit 0a6e5de

Please sign in to comment.