Skip to content

Commit

Permalink
chore(git): use @{upstream} for upstream in external_git
Browse files Browse the repository at this point in the history
  • Loading branch information
AzraelSec committed Aug 12, 2023
1 parent fa1597e commit e2a869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/external_git/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (g ExternalGit) DiffersFromRemote(repo git.Repo) (bool, error) {
ret := gitcb.NewCommandBuilder().
SetRepo(repo).
Arg("diff", "--exit-code", "--quiet").
Arg(string(br), fmt.Sprintf("origin/%s", string(br))).
Arg(string(br), "@{upstream}").
RunWithExitCode()
if ret == -1 {
return false, errors.New("returned with -1")
Expand Down

0 comments on commit e2a869d

Please # to comment.