Skip to content

Commit

Permalink
Fix issue where "git subrepo commit" incorrectly gives error "There i…
Browse files Browse the repository at this point in the history
…s no worktree available".
  • Loading branch information
reidgould committed Sep 27, 2024
1 parent 57de7d6 commit d0a499b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-subrepo
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ command-setup() {
local _worktree
_worktree=$(
git worktree list |
grep "\[subrepo/$subdir\]" |
grep "\[subrepo/$subref\]" |
cut -d ' ' -f1
) || true
if [[ $command =~ ^(commit)$ && -z $_worktree ]]; then
Expand Down

0 comments on commit d0a499b

Please sign in to comment.