Skip to content

Commit

Permalink
locks: print warning about locking API to standard error
Browse files Browse the repository at this point in the history
This is a diagnostic and as such should go to standard error.  Doing so
it consistent with what Git does, so do so here as well.
  • Loading branch information
bk2204 committed Apr 26, 2023
1 parent e817124 commit 109e4f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/lockverifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ func (lv *lockVerifier) Verify(ref *git.Ref) {
Exit(tr.Tr.Get("error: Authentication error: %s", err))
}
} else {
Print(tr.Tr.Get("Remote %q does not support the Git LFS locking API. Consider disabling it with:", cfg.PushRemote()))
Print(" $ git config lfs.%s.locksverify false", lv.endpoint.Url)
Error(tr.Tr.Get("Remote %q does not support the Git LFS locking API. Consider disabling it with:", cfg.PushRemote()))
Error(" $ git config lfs.%s.locksverify false", lv.endpoint.Url)
if lv.verifyState == verifyStateEnabled {
ExitWithError(err)
}
}
}
} else if lv.verifyState == verifyStateUnknown {
Print(tr.Tr.Get("Locking support detected on remote %q. Consider enabling it with:", cfg.PushRemote()))
Print(" $ git config lfs.%s.locksverify true", lv.endpoint.Url)
Error(tr.Tr.Get("Locking support detected on remote %q. Consider enabling it with:", cfg.PushRemote()))
Error(" $ git config lfs.%s.locksverify true", lv.endpoint.Url)
}

lv.addLocks(ref, ours, lv.ourLocks)
Expand Down

0 comments on commit 109e4f9

Please sign in to comment.