gogit: error message typo fix
Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
2803a8684b
commit
29bc08f547
|
@ -79,7 +79,7 @@ func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, opts *g
|
||||||
|
|
||||||
if currentRevision != "" && currentRevision == c.LastRevision {
|
if currentRevision != "" && currentRevision == c.LastRevision {
|
||||||
return nil, git.NoChangesError{
|
return nil, git.NoChangesError{
|
||||||
Message: "no changes since last reconcilation",
|
Message: "no changes since last reconciliation",
|
||||||
ObservedRevision: currentRevision,
|
ObservedRevision: currentRevision,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, opts *git.
|
||||||
|
|
||||||
if currentRevision != "" && currentRevision == c.LastRevision {
|
if currentRevision != "" && currentRevision == c.LastRevision {
|
||||||
return nil, git.NoChangesError{
|
return nil, git.NoChangesError{
|
||||||
Message: "no changes since last reconcilation",
|
Message: "no changes since last reconciliation",
|
||||||
ObservedRevision: currentRevision,
|
ObservedRevision: currentRevision,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ func TestCheckoutBranch_Checkout(t *testing.T) {
|
||||||
name: "skip clone if LastRevision hasn't changed",
|
name: "skip clone if LastRevision hasn't changed",
|
||||||
branch: "master",
|
branch: "master",
|
||||||
filesCreated: map[string]string{"branch": "init"},
|
filesCreated: map[string]string{"branch": "init"},
|
||||||
expectedErr: fmt.Sprintf("no changes since last reconcilation: observed revision 'master/%s'", firstCommit.String()),
|
expectedErr: fmt.Sprintf("no changes since last reconciliation: observed revision 'master/%s'", firstCommit.String()),
|
||||||
lastRevision: fmt.Sprintf("master/%s", firstCommit.String()),
|
lastRevision: fmt.Sprintf("master/%s", firstCommit.String()),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ func TestCheckoutTag_Checkout(t *testing.T) {
|
||||||
tag: "tag-2",
|
tag: "tag-2",
|
||||||
checkoutTag: "tag-2",
|
checkoutTag: "tag-2",
|
||||||
setLastRev: true,
|
setLastRev: true,
|
||||||
expectErr: "no changes since last reconcilation",
|
expectErr: "no changes since last reconciliation",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Last revision changed",
|
name: "Last revision changed",
|
||||||
|
|
Loading…
Reference in New Issue