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

Commit

Permalink
Use origin/HEAD instead of origin/master (#120)
Browse files Browse the repository at this point in the history
Refs: rust-lang/cargo#9133

Co-authored-by: Taiki Yoshida <yoshida.taiki@bpsinc.jp>
  • Loading branch information
kazatsuyu and Taiki Yoshida committed Feb 19, 2021
1 parent 75e55df commit 575836f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/local_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function checkCargoRegistry(localIndexHash?: string) {

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

0 comments on commit 575836f

Please sign in to comment.