[gh ext] Fix GitKind extension directory path
This commit is contained in:
parent
234d2effd5
commit
e02ee18ed2
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ func (e *Extension) IsPinned() bool {
|
|||
isPinned = manifest.IsPinned
|
||||
}
|
||||
case GitKind:
|
||||
pinPath := filepath.Join(e.Path(), fmt.Sprintf(".pin-%s", e.CurrentVersion()))
|
||||
extDir := filepath.Dir(e.path)
|
||||
pinPath := filepath.Join(extDir, fmt.Sprintf(".pin-%s", e.CurrentVersion()))
|
||||
if _, err := os.Stat(pinPath); err == nil {
|
||||
isPinned = true
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue