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
|
|
@ -51,7 +51,7 @@ func NewGitImporter(li LocalImporter, remote string) GitImporter {
|
|||
}
|
||||
}
|
||||
|
||||
func (i GitImporter) Kind() string {
|
||||
func (i GitImporter) Id() *string {
|
||||
var gitinfo string
|
||||
r, err := git.PlainOpen(i.li.Base)
|
||||
if err == nil {
|
||||
|
|
@ -61,7 +61,7 @@ func (i GitImporter) Kind() string {
|
|||
}
|
||||
}
|
||||
|
||||
return "git originated from " + i.Remote + " on " + i.li.Kind() + ", currently on commit " + gitinfo
|
||||
return &gitinfo
|
||||
}
|
||||
|
||||
func (i GitImporter) Init() error {
|
||||
|
|
|
|||
Reference in a new issue