diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 15:23:17 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 15:23:17 -0500 |
| commit | ec661807da8b201cd51e544aee59e8de21aeb0df (patch) | |
| tree | e8c8878705d0d5c4051f99878d43f29b2da28ecc /addRepo.go | |
| parent | 127f36ca1f82ca9c1945e08802a49e4f9e30d2b7 (diff) | |
switch over to using gitpb.Repo directly
Diffstat (limited to 'addRepo.go')
| -rw-r--r-- | addRepo.go | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1,13 +1,6 @@ package main -import ( - "strings" - "time" - - "go.wit.com/lib/gadgets" - "go.wit.com/log" -) - +/* func RemoveFirstElement(slice []string) (string, []string) { if len(slice) == 0 { return "", slice // Return the original slice if it's empty @@ -17,7 +10,7 @@ func RemoveFirstElement(slice []string) (string, []string) { // homeDir, _ := os.UserHomeDir() -func (c *controlBox) addRepo() { +func (c *controlBox) addRepoOld() { path := strings.Trim(me.goPath, "/") // trim any extranous '/' chars put in the config file by the user if path == "" { log.Warn("addRepo() got empty path", path) @@ -99,3 +92,4 @@ func (c *controlBox) addRepo() { c.tagDate.SetText(tagDate) return } +*/ |
