You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.Wrap(err, "failed to get COMMIT_SHA from sandbox")
677
+
returnerrors.Wrap(err, "failed to get RWX_GIT_COMMIT_SHA from sandbox")
678
678
}
679
679
ifexitCode!=0 {
680
-
returnfmt.Errorf("failed to get COMMIT_SHA from sandbox (exit code %d)", exitCode)
680
+
returnfmt.Errorf("failed to get RWX_GIT_COMMIT_SHA from sandbox (exit code %d)", exitCode)
681
681
}
682
-
683
682
commitSHA=strings.TrimSpace(commitSHA)
683
+
ifidx:=strings.Index(commitSHA, "+"); idx!=-1 {
684
+
commitSHA=commitSHA[:idx]
685
+
}
686
+
684
687
ifcommitSHA=="" {
685
-
returnfmt.Errorf("COMMIT_SHA environment variable is not set in the sandbox. Add `env: COMMIT_SHA: ${{ init.commit }}` to your sandbox task definition")
688
+
returnfmt.Errorf("RWX_GIT_COMMIT_SHA environment variable is not set in the sandbox. The sandbox task should be dependent on a task that uses git/clone")
686
689
}
687
690
688
691
// Reset working directory to the base commit (clears any previous patches)
0 commit comments