diff options
| author | Jeff Carr <[email protected]> | 2025-10-06 07:42:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-06 07:42:14 -0500 |
| commit | 3a81d6fa084662b389b798d5ce9f27f55176446a (patch) | |
| tree | 0285b8afaa33d4c4e7e0e63535fd71d8fbee5c9e /doNormal.go | |
| parent | fcd790a46c0fa6991e08dc825d10b5a13276bbe5 (diff) | |
sort this out later
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/doNormal.go b/doNormal.go index 1d24d8a..629fdb7 100644 --- a/doNormal.go +++ b/doNormal.go @@ -67,7 +67,7 @@ func doNormal() bool { } } if stat.Err == ErrorLocalBehindDevel { - log.Info("NEED TO DELETE USER HERE IF NOTHING NEW", path) + log.Info(path, "local branch is behind devel?") } // log.Infof("%-60s, %-60s %v %s\n", stat.Start, stat.End.String(), dur, path) // log.Infof("%-30v %s %v\n", dur, path, stat.Err) @@ -175,14 +175,17 @@ func checkNormalRepoState(repo *gitpb.Repo) error { // make dev here (should have already happened) return ErrorNoDevelBranch } - if len(dver.GreaterThan(uver)) == 0 { - log.Info(repo.FullPath, "usr < dev") - repo.State = "usr < dev" - // check if nothing new exists in user, then delete - return ErrorLocalBehindDevel - } else { - repo.State = "normal" - } + /* + // THIS IS WRONG LOGIC + if len(dver.GreaterThan(uver)) == 0 { + log.Info(repo.FullPath, "usr < dev") + repo.State = "usr < dev" + // check if nothing new exists in user, then delete + return ErrorLocalBehindDevel + } else { + repo.State = "normal" + } + */ // everything is fine } |
