1 |
Discard the git-rev-parse error output to avoid 'fatal: Not a git |
2 |
repository [...]' errors when checking whether the repository exists. |
3 |
--- |
4 |
pym/portage/sync/modules/git/git.py | 2 +- |
5 |
1 file changed, 1 insertion(+), 1 deletion(-) |
6 |
|
7 |
diff --git a/pym/portage/sync/modules/git/git.py b/pym/portage/sync/modules/git/git.py |
8 |
index b97d501..02da037 100644 |
9 |
--- a/pym/portage/sync/modules/git/git.py |
10 |
+++ b/pym/portage/sync/modules/git/git.py |
11 |
@@ -36,7 +36,7 @@ class GitSync(SyncBase): |
12 |
|
13 |
if not os.path.exists(self.repo.location): |
14 |
return False |
15 |
- exitcode = portage.process.spawn_bash("cd %s ; git rev-parse" %\ |
16 |
+ exitcode = portage.process.spawn_bash("cd %s ; git rev-parse 2>/dev/null" %\ |
17 |
(portage._shell_quote(self.repo.location),), |
18 |
**portage._native_kwargs(self.spawn_kwargs)) |
19 |
if exitcode == 128: |
20 |
-- |
21 |
2.2.1 |