summaryrefslogtreecommitdiff
path: root/checkout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-07-21 22:25:27 -0500
committerJeff Carr <[email protected]>2025-07-21 22:25:27 -0500
commit68af638f9ece1a67075d5022a1361821e0f03b9a (patch)
tree6c041d3507fd361290de9d89446db69e0f38e5aa /checkout.go
parent1c439782941d21d8b26bf5590b4f3d4b69da70ad (diff)
something to make user branchesv0.0.106v0.0.105
Diffstat (limited to 'checkout.go')
-rw-r--r--checkout.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkout.go b/checkout.go
index ce8c88b..f2df501 100644
--- a/checkout.go
+++ b/checkout.go
@@ -1,6 +1,7 @@
package gitpb
import (
+ "fmt"
"os"
"path/filepath"
@@ -84,12 +85,11 @@ func (repo *Repo) checkoutBranch(bName string) bool {
func (repo *Repo) createUserBranchNew(branch string) error {
if branch == "" || branch == "uerr" {
- log.Info("forge.gitpb logic err. branch name was:", branch)
- return nil
+ return fmt.Errorf("forge.gitpb logic err. branch name was: %s", branch)
}
if repo.IsDirty() {
// never change repos on dirty branches
- return nil
+ return fmt.Errorf("repo is dirty")
}
// log.Info("forge.gitpb look for branch name was:", branch, repo.GetGoPath())