Skip to content

Commit 6abf5e8

Browse files
Staffan Fribergbbakerman
authored andcommitted
Support running from a different CWD
Netbeans directory in.gitignore
1 parent b8b248a commit 6abf5e8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ docs/_build/
1313
\.classpath
1414
\.project
1515
\.settings/
16+
/.nb-gradle/

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply plugin: 'osgi'
1313
def getDevelopmentVersion() {
1414
def output = new StringBuilder()
1515
def error = new StringBuilder()
16-
def gitShortHash = 'git rev-parse --short HEAD'.execute()
16+
def gitShortHash = "git -C ${projectDir} rev-parse --short HEAD".execute()
1717
gitShortHash.waitForProcessOutput(output, error)
1818
def gitHash = output.toString().trim()
1919
if (gitHash.isEmpty()) {

0 commit comments

Comments
 (0)