MCPcopy Index your code
hub / github.com/rilldata/rill / TestRunGitPush_NoNewCommits

Function TestRunGitPush_NoNewCommits

cli/pkg/gitutil/gitcmdwrapper_test.go:301–308  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

299}
300
301func TestRunGitPush_NoNewCommits(t *testing.T) {
302 tempDir, _ := setupTestRepository(t)
303 branch := getCurrentBranch(t, tempDir)
304
305 // Push with no new commits; remote is already up to date — should not error.
306 err := RunGitPush(context.Background(), tempDir, "origin", branch)
307 require.NoError(t, err, "RunGitPush should not fail when there are no new commits")
308}
309
310func TestInferGitRepoRoot_InRepoRoot(t *testing.T) {
311 tempDir, _ := setupTestRepository(t)

Callers

nothing calls this directly

Calls 3

RunGitPushFunction · 0.85
setupTestRepositoryFunction · 0.70
getCurrentBranchFunction · 0.70

Tested by

no test coverage detected