isacikgoz / gitbatch

manage your git repositories in one place
MIT License
1.54k stars 53 forks source link

Error on startup #39

Closed amityo closed 5 years ago

amityo commented 5 years ago
panic: runtime error: slice bounds out of range

goroutine 31 [running]:
github.com/isacikgoz/gitbatch/pkg/git.(*RepoEntity).loadStashedItems(0xc42033c000, 0x0, 0x0)
        /home/isacikgoz/.local/share/go/src/github.com/isacikgoz/gitbatch/pkg/git/cmd-stash.go:64 +0x655
github.com/isacikgoz/gitbatch/pkg/git.(*RepoEntity).loadComponents(0xc42033c000, 0x1, 0xc42033c000, 0x0)
        /home/isacikgoz/.local/share/go/src/github.com/isacikgoz/gitbatch/pkg/git/repository.go:119 +0x92
github.com/isacikgoz/gitbatch/pkg/git.InitializeRepo(0xc4202a89c0, 0x1c, 0xc4202c31f0, 0x0, 0x0)
        /home/isacikgoz/.local/share/go/src/github.com/isacikgoz/gitbatch/pkg/git/repository.go:104 +0x7d
github.com/isacikgoz/gitbatch/pkg/git.LoadRepositoryEntities.func1(0xc4202c31f0, 0xc4202c31e8, 0xc420216d20, 0xc4202a89c0, 0x1c)
        /home/isacikgoz/.local/share/go/src/github.com/isacikgoz/gitbatch/pkg/git/util-load.go:27 +0x7d
created by github.com/isacikgoz/gitbatch/pkg/git.LoadRepositoryEntities
        /home/isacikgoz/.local/share/go/src/github.com/isacikgoz/gitbatch/pkg/git/util-load.go:23 +0x13f
isacikgoz commented 5 years ago

38