File: fix-test-gitconfig.patch

package info (click to toggle)
golang-gopkg-src-d-go-git.v4 4.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,896 kB
  • sloc: sh: 61; makefile: 45
file content (19 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix the git config
 The test goes fail with git exit status 128 while committing when git
 config is not set globally or locally. This patch sets dummy local git
 config before committing, for testing.
Forwarded: https://github.com/src-d/go-git/pull/1139
Author: Jongmin Kim <jmkim@pukyong.ac.kr>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -248,6 +248,8 @@
 	ExecuteOnPath(c, path,
 		"touch foo",
 		"git add foo",
+		"git config user.email foo@example.com",
+		"git config user.name foo",
 		"git commit -m foo foo",
 	)