Skip to content

Commit

Permalink
Merge pull request #12 from wbat/modify-is_git_repository
Browse files Browse the repository at this point in the history
Change logic to allow git repo or .git dir exists
  • Loading branch information
bateller authored Sep 21, 2023
2 parents a93309e + b4e17b0 commit 674df94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bashrc_snippet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GIT_SHOW_UNCOMMITTED_CHANGES=true
GIT_SHOW_UNTRACKED_FILES=true

is_git_repository() {
git rev-parse --is-inside-work-tree >/dev/null 2>&1 && [ -d .git ]
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || [ -d .git ]
}

get_git_info() {
Expand Down

0 comments on commit 674df94

Please sign in to comment.