Fixed issue #5014 (Missing Pulumi console tags on Windows) (#5406)

Co-authored-by: Paul Stack <public@paulstack.co.uk>
This commit is contained in:
jetvova 2020-09-25 07:04:18 -07:00 committed by GitHub
parent 6e0163b248
commit b4c2a3521c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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)

View file

@ -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
}