Skip to content

Checking details for repo without remote host fails. #99

@Nageswari-droid

Description

@Nageswari-droid
 {
  "id": "c28ebcec",
  "repoName": "Testing",
  "repoPath": "C:\\Users\\SVNPC\\Desktop\\js\\vanilla_js\\testing",
  "timestamp": "2020-11-16 13:58:53.0060524 +0530 IST m=+11849.732890401"
 }
]
2020/11/16 14:01:22 INFO: Collecting repo status information
2020/11/16 14:01:22 INFO: Collecting repo status information
2020/11/16 14:01:22 INFO: Available remotes in repo :
[0xc0003964c0]
2020/11/16 14:01:22 INFO: Available remotes in repo :
[0xc000065af0]
2020/11/16 14:01:22 INFO: Collecting repo status information
2020/11/16 14:01:22 INFO: Collecting repo status information
2020/11/16 14:01:22 INFO: Available remotes in repo :
[0xc0002d8560]
2020/11/16 14:01:22 INFO: Available remotes in repo :
[]
panic: runtime error: index out of range [0] with length 0

goroutine 37 [running]:
github.com/neel1996/gitconvex-server/git.RemoteData(0xc000109f50, 0xc00012c120)
        C:/Users/SVNPC/Desktop/js/gitconvex/git/git_remote_data.go:49 +0x1dc
created by github.com/neel1996/gitconvex-server/api.RepoStatus
        C:/Users/SVNPC/Desktop/js/gitconvex/api/repo_status.go:29 +0x255

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions