Skip to content

Commit

Permalink
Fix Bug ignore private repo logic (#80)
Browse files Browse the repository at this point in the history
In line 48 if expression had a bug: private repos would be skipped if `ignorePrivate` is false.
  • Loading branch information
arborknot-ci authored Jul 25, 2022
1 parent 360d753 commit 94d063f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func backUp(backupDir string, repo *Repository, bare bool, wg *sync.WaitGroup) (
log.Printf("Cloning %s\n", repo.Name)
log.Printf("%#v\n", repo)

if repo.Private && ignorePrivate != nil && !*ignorePrivate {
if repo.Private && ignorePrivate != nil && *ignorePrivate {
log.Printf("Skipping %s as it is a private repo.\n", repo.Name)
return stdoutStderr, nil
}
Expand Down

0 comments on commit 94d063f

Please sign in to comment.