Skip to content

Commit d68ad1b

Browse files
committed
improvements
1 parent 09f519e commit d68ad1b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/gitrepo/fetch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import (
1010
)
1111

1212
func FetchRemoteCommit(ctx context.Context, repo, remoteRepo Repository, commitID string) error {
13-
_, err := RunCmdString(ctx, repo, gitcmd.NewCommand("fetch", "--no-tags").
13+
return RunCmd(ctx, repo, gitcmd.NewCommand("fetch", "--no-tags").
1414
AddDynamicArguments(repoPath(remoteRepo)).
1515
AddDynamicArguments(commitID))
16-
return err
1716
}

tests/integration/pull_comment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func testWaitForPullRequestStatus(t *testing.T, prIssue *issues_model.Issue, exp
2727
retIssue = unittest.AssertExistsAndLoadBean(t, &prIssueCond)
2828
require.NoError(t, retIssue.LoadPullRequest(t.Context()))
2929
return retIssue.PullRequest.Status == expectedStatus
30-
}, 10*time.Second, 20*time.Millisecond)
30+
}, 5*time.Second, 20*time.Millisecond)
3131
return retIssue
3232
}
3333

0 commit comments

Comments
 (0)