Skip to content

Commit

Permalink
Add --force to git add
Browse files Browse the repository at this point in the history
  • Loading branch information
andornaut committed Aug 31, 2023
1 parent 47f08ea commit 3cd5b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func File(repoPath, intPath string) error {
}

func addToGit(repoPath, intPath, extPath string) {
if err := git.Run(repoPath, "add", intPath); err != nil {
if err := git.Run(repoPath, "add", "--force", intPath); err != nil {
printError(intPath, err)
}
}
Expand Down

0 comments on commit 3cd5b8e

Please sign in to comment.