ready to be switched to protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f85d3226e0
commit
50d4acb9c1
|
@ -107,10 +107,10 @@ func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, desc stri
|
||||||
tmp, _ := versionMap[gourl]
|
tmp, _ := versionMap[gourl]
|
||||||
parts := strings.Split(tmp, " ")
|
parts := strings.Split(tmp, " ")
|
||||||
if len(parts) > 0 {
|
if len(parts) > 0 {
|
||||||
version = parts[0]
|
vtime = parts[0]
|
||||||
}
|
}
|
||||||
if len(parts) > 1 {
|
if len(parts) > 1 {
|
||||||
vtime = parts[1]
|
version = parts[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
if vtime != "" {
|
if vtime != "" {
|
||||||
|
|
Loading…
Reference in New Issue