fixing bug with config generation, started fixing add command, next commit command
This commit is contained in:
@@ -168,12 +168,10 @@ func initCommand(cli *clir.Cli, conf *clientconfig.Gvcconfig, dbPath string) {
|
||||
if err != nil {
|
||||
log.Fatalf("unable to create new repo: %s", err)
|
||||
}
|
||||
newConf := clientconfig.Gvcconfig{
|
||||
RepoName: repoName,
|
||||
Version: version,
|
||||
CurrentBranch: "master",
|
||||
}
|
||||
err = store.Save(configPath, &newConf)
|
||||
conf.RepoName = repoName
|
||||
conf.Version = version
|
||||
conf.CurrentBranch = "master"
|
||||
fmt.Println("Branch is now set to: ", conf.CurrentBranch)
|
||||
if err != nil {
|
||||
log.Fatalf("unable to create new config in .gvc %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user