Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 575836f

Browse files
kazatsuyuTaiki Yoshida
and
Taiki Yoshida
authored
Use origin/HEAD instead of origin/master (#120)
Refs: rust-lang/cargo#9133 Co-authored-by: Taiki Yoshida <[email protected]>
1 parent 75e55df commit 575836f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/local_registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function checkCargoRegistry(localIndexHash?: string) {
3838

3939
export const versions = (name: string) => {
4040
return exec(
41-
`git --no-pager --git-dir="${gitDir}" show origin/master:${decidePath(name)}`,
41+
`git --no-pager --git-dir="${gitDir}" show origin/HEAD:${decidePath(name)}`,
4242
{ maxBuffer: 8 * 1024 * 1024 } // "8M ought to be enough for anyone."
4343
)
4444
.then((buf: { stdout: Buffer, stderr: Buffer; }) => {

0 commit comments

Comments
 (0)