Skip to content

Commit 68edb6d

Browse files
authored
Update main.go
1 parent 10ebf67 commit 68edb6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ func main() {
8888
log.Fatalf("Error updating readme %s", err)
8989
}
9090

91+
// mark safe directory
92+
safeCmd := exec.Command("git", "config", "--global", "--add", "safe.directory", "/github/workspace")
93+
err = safeCmd.Run()
94+
if err != nil {
95+
log.Fatalf("Error setting safe directory %s", err)
96+
}
97+
9198
// set git user name
9299
nameCmd := exec.Command("git", "config", "user.name", commit_user)
93100
err = nameCmd.Run()

0 commit comments

Comments
 (0)