Co-authored-by: Paul Stack <public@paulstack.co.uk>
This commit is contained in:
parent
6e0163b248
commit
b4c2a3521c
|
@ -6,6 +6,10 @@ CHANGELOG
|
|||
- Do not oversimplify types for display when running an update or preview.
|
||||
[#5440](https://github.com/pulumi/pulumi/pull/5440)
|
||||
|
||||
- Pulumi Windows CLI now uploads all VCS information to console
|
||||
(fixes [#5014](https://github.com/pulumi/pulumi/issues/5014))
|
||||
[#5406](https://github.com/pulumi/pulumi/pull/5406)
|
||||
|
||||
_(None)_
|
||||
|
||||
## 2.10.2 (2020-09-21)
|
||||
|
@ -15,7 +19,7 @@ _(None)_
|
|||
|
||||
- Add `pulumi console` command which opens the currently selected stack in the Pulumi console.
|
||||
[#5368](https://github.com/pulumi/pulumi/pull/5368)
|
||||
|
||||
|
||||
- Python SDK: Cast numbers intended to be integers to `int`.
|
||||
[#5419](https://github.com/pulumi/pulumi/pull/5419)
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ package gitutil
|
|||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"sort"
|
||||
|
@ -80,7 +79,7 @@ func GetGitRepository(dir string) (*git.Repository, error) {
|
|||
}
|
||||
|
||||
// Open the git repo in the .git folder's parent, not the .git folder itself.
|
||||
repo, err := git.PlainOpen(path.Join(gitRoot, ".."))
|
||||
repo, err := git.PlainOpen(filepath.Dir(gitRoot))
|
||||
if err == git.ErrRepositoryNotExists {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue