summaryrefslogtreecommitdiff
path: root/doFix.go
diff options
context:
space:
mode:
Diffstat (limited to 'doFix.go')
-rw-r--r--doFix.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/doFix.go b/doFix.go
index cfc54b3..068ebee 100644
--- a/doFix.go
+++ b/doFix.go
@@ -16,20 +16,20 @@ func getPorcelain() (string, error) {
}
// is every repo on the devel branch?
-func doFix() (string, error) {
+func doFix(f *FixCmd) (string, error) {
var s string
var err error
- if argv.Fixer.Urls {
+ if f.Urls {
err = doFixUrls()
}
- if argv.Fixer.Untracked {
+ if f.Untracked {
return doRemoveUntrackedFiles()
}
- if argv.Fixer.DeleteUser {
+ if f.DeleteUser {
return doDeleteUser()
}
- if argv.Fixer.Prune {
+ if f.Prune {
// git fetch --prune
for repo := range me.forge.Repos.IterByNamespace() {
if me.forge.Config.IsReadOnly(repo.Namespace) {
@@ -39,7 +39,7 @@ func doFix() (string, error) {
}
}
- if argv.Fixer.Porcelain != nil {
+ if f.Porcelain != nil {
s, err = getPorcelain()
log.Info("GET PORCELAIN SENT BACK", s, err)
for repo := range me.forge.Repos.IterByFullPath() {