Skip to content

Commit

Permalink
$mol_build git ensure fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 7, 2024
1 parent b8ea55b commit a574af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/ensure/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace $ {
const repo = this.repo(dir)
if (! repo) return 'master'

const res = this.$.$mol_run.spawn( { command: ['git', 'remote', 'show', repo.url ], dir } )
const res = this.$.$mol_run.spawn( { command: ['git', 'remote', 'show', repo.url ], dir, dirty: true } )

return res.stdout.toString().match( /HEAD branch: (.*?)\n/ )?.[1] ?? 'master'
}
Expand Down

0 comments on commit a574af5

Please sign in to comment.