gogit: error message typo fix

Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
Sunny 2022-05-13 16:36:46 +05:30
parent 2803a8684b
commit 29bc08f547
No known key found for this signature in database
GPG Key ID: 9F3D25DDFF7FA3CF
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, opts *g
if currentRevision != "" && currentRevision == c.LastRevision {
return nil, git.NoChangesError{
Message: "no changes since last reconcilation",
Message: "no changes since last reconciliation",
ObservedRevision: currentRevision,
}
}
@ -154,7 +154,7 @@ func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, opts *git.
if currentRevision != "" && currentRevision == c.LastRevision {
return nil, git.NoChangesError{
Message: "no changes since last reconcilation",
Message: "no changes since last reconciliation",
ObservedRevision: currentRevision,
}
}

View File

@ -84,7 +84,7 @@ func TestCheckoutBranch_Checkout(t *testing.T) {
name: "skip clone if LastRevision hasn't changed",
branch: "master",
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()),
},
{
@ -151,7 +151,7 @@ func TestCheckoutTag_Checkout(t *testing.T) {
tag: "tag-2",
checkoutTag: "tag-2",
setLastRev: true,
expectErr: "no changes since last reconcilation",
expectErr: "no changes since last reconciliation",
},
{
name: "Last revision changed",