Skip to content

Commit

Permalink
fix(manager/git-submodules): Fix branch detection for special branch …
Browse files Browse the repository at this point in the history
…value `.` (#26329)
  • Loading branch information
AirOne70 committed Dec 16, 2023
1 parent ad2f62c commit 97abffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/manager/git-submodules/extract.ts
Expand Up @@ -70,7 +70,7 @@ async function getBranch(
).trim();

return branchFromConfig === '.'
? (await git.branch(['--show-current'])).current.trim()
? (await git.branch(['--list'])).current.trim()
: branchFromConfig || (await getDefaultBranch(subModuleUrl)).trim();
}

Expand Down

0 comments on commit 97abffb

Please sign in to comment.