fix: dont add .git dirs

Closes coop-cloud/organising#276.
This commit is contained in:
cellarspoon 2021-12-05 01:30:23 +01:00
parent 7d8f3f1fab
commit 2db5378418
Signed by untrusted user: decentral1se
GPG Key ID: 03789458B3D0C410

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
}