diff options
author | Mura Li <typeless@users.noreply.github.com> | 2019-04-17 19:11:37 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-04-17 14:11:37 +0300 |
commit | 2a9806bfc64c2b9fe2027fb6b7bd1844c0cac365 (patch) | |
tree | 6787b1f8f64c4eb247a6fd591b9b3b29507e0da4 /modules/git/command.go | |
parent | 7a4c29c739fa9b08f901220ebcb2948daf491692 (diff) | |
download | gitea-2a9806bfc64c2b9fe2027fb6b7bd1844c0cac365.tar.gz gitea-2a9806bfc64c2b9fe2027fb6b7bd1844c0cac365.zip |
Pre-calculate the absolute path of git (#6575)
* Pre-caculate the absolute path of git
* Do not repeat string literals which has been defined somewhere
Also make it flexible to accept customized/user-defined value.
Diffstat (limited to 'modules/git/command.go')
-rw-r--r-- | modules/git/command.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/command.go b/modules/git/command.go index d354635119..3602717702 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -41,7 +41,7 @@ func NewCommand(args ...string) *Command { cargs := make([]string, len(GlobalCommandArgs)) copy(cargs, GlobalCommandArgs) return &Command{ - name: "git", + name: GitExecutable, args: append(cargs, args...), } } |