Skip to content

Commit dbb8b20

Browse files
author
gitopia1c2zfrmhra3spfrc2m5ft64hef30guf60lvtcm3
committed
Merge pull request #4 from git-remote-gitopia/exec-without-gitdir
2 parents db1f7c7 + 9bf7b6c commit dbb8b20

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes will be documented here.
44

5+
## [v1.3.2] - UNRELEASED
6+
7+
- Allow invocation without `GIT_DIR` variable
8+
59
## [v1.3.1] - 2022-11-15
610

711
- Fix node address in prod config

core/util.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import (
77

88
func GetLocalDir() (string, error) {
99
localdir := path.Join(os.Getenv("GIT_DIR"))
10+
if localdir == "" {
11+
return "", nil
12+
}
1013

1114
if err := os.MkdirAll(localdir, 0755); err != nil {
1215
return "", err

0 commit comments

Comments
 (0)