added artifacts
This commit is contained in:
@@ -283,6 +283,14 @@ func RepoSize(repoPath string) int64 {
|
||||
return total
|
||||
}
|
||||
|
||||
// Run executes a git command in repoPath with discrete arguments and returns
|
||||
// the raw stdout. WARNING: args must be constant literals or strictly validated
|
||||
// — no user-controlled values belong here. This is the public equivalent of the
|
||||
// internal run() helper and carries the same safety guarantees.
|
||||
func Run(repoPath string, args ...string) ([]byte, error) {
|
||||
return run(repoPath, args...)
|
||||
}
|
||||
|
||||
// RevParse resolves a ref (branch name, tag, or SHA) to its full commit SHA.
|
||||
func RevParse(repoPath, ref string) (string, error) {
|
||||
out, err := run(repoPath, "rev-parse", "--verify", ref)
|
||||
|
||||
Reference in New Issue
Block a user