Skip to content

Commit

Permalink
Merge pull request #14 from Th1nkMore/bugfix
Browse files Browse the repository at this point in the history
small bug fixed
  • Loading branch information
asim authored Nov 24, 2022
2 parents da3f696 + 78cb933 commit c60c671
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@ func serviceRpc(hr HandlerReq) {
args := []string{rpc, "--stateless-rpc", dir}
cmd := exec.Command(DefaultConfig.GitBinPath, args...)
version := r.Header.Get("Git-Protocol")

cmd.Dir = dir
cmd.Env = env
if len(version) != 0 {
cmd.Env = append(env, fmt.Sprintf("GIT_PROTOCOL=%s", version))
}
cmd.Dir = dir
cmd.Env = env


DefaultConfig.CommandFunc(cmd)

in, err := cmd.StdinPipe()
Expand Down

0 comments on commit c60c671

Please sign in to comment.