Skip to content

Commit 5f3380b

Browse files
Yoseph Raddingtrevor-scheer
authored andcommitted
Add gitLoc to git.branch (#944)
Add gitLoc to git.branch function call
1 parent c02dc71 commit 5f3380b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Upcoming
4+
- Fix a bug where tagging a build will cause the tool to not be able to figure out where the git repo is [#944](https://github.com/apollographql/apollo-tooling/pull/944)
45

56
- `apollo-language-server`
67
- Added a warning when there are 0 files found in a project [#1007](https://github.com/apollographql/apollo-tooling/pull/1007)

packages/apollo/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const gitInfo = async (): Promise<GitContext | undefined> => {
8181
// See https://github.com/pvdlg/env-ci#caveats for a detailed list of when
8282
// branch can be undefined
8383
if (!branch) {
84-
branch = git.branch();
84+
branch = git.branch([gitLoc]);
8585
}
8686
}
8787

0 commit comments

Comments
 (0)