fix: dont add .git dirs

Closes coop-cloud/organising#276.
This commit is contained in:
decentral1se 2021-12-05 01:30:23 +01:00
parent 7d8f3f1fab
commit 2db5378418
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func Init(repoPath string, commit bool) error {
logrus.Fatal(err)
}
if err := commitWorktree.AddGlob("**"); err != nil {
if err := commitWorktree.AddWithOptions(&git.AddOptions{All: true}); err != nil {
return err
}