admin: Display commit ID in admin interface
This commit is contained in:
parent
92bb409764
commit
2645109839
9 changed files with 30 additions and 5 deletions
|
@ -25,7 +25,7 @@ func NewGitImporter(li LocalImporter, remote string) GitImporter {
|
|||
}
|
||||
}
|
||||
|
||||
func (i GitImporter) Kind() string {
|
||||
func (i GitImporter) Id() *string {
|
||||
cmdshow := exec.Command("git", "-C", i.li.Base, "show")
|
||||
var outshow bytes.Buffer
|
||||
cmdshow.Stdout = &outshow
|
||||
|
@ -43,7 +43,7 @@ func (i GitImporter) Kind() string {
|
|||
}
|
||||
}
|
||||
|
||||
return "git originated from " + i.Remote + " on " + i.li.Kind() + ", currently on commit " + commit
|
||||
return &commit
|
||||
}
|
||||
|
||||
func (i GitImporter) Init() error {
|
||||
|
|
Reference in a new issue