Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
🐛 Use the GITHUB_USER environment variable instead of gitconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieconnolly committed Sep 18, 2017
1 parent ac6527d commit 09843f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/handles-get
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "$PROJECT_NAME" =~ ^([A-Za-z0-9][A-Za-z0-9-]*)/([A-Za-z0-9_.][A-Za-z0-9_.-
REPO_OWNER="${BASH_REMATCH[1]}"
elif [[ "$PROJECT_NAME" =~ ^[A-Za-z0-9_.][A-Za-z0-9_.-]*$ ]]; then
REPO_NAME="$PROJECT_NAME"
REPO_OWNER="$(git config github.user)"
REPO_OWNER="${GITHUB_USER:?}"
elif [ -n "$PROJECT_NAME" ]; then
echo "!!! Error: invalid project: ${PROJECT_NAME}" >&2
exit 1
Expand Down

0 comments on commit 09843f2

Please sign in to comment.