summaryrefslogtreecommitdiffstats
path: root/scripts/git-intercept/git
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-intercept/git')
-rwxr-xr-xscripts/git-intercept/git19
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/git-intercept/git b/scripts/git-intercept/git
deleted file mode 100755
index 8adf5c9ecb..0000000000
--- a/scripts/git-intercept/git
+++ /dev/null
@@ -1,19 +0,0 @@
1#!/usr/bin/env python3
2#
3# Wrapper around 'git' that doesn't think we are root
4
5import os
6import shutil
7import sys
8
9os.environ['PSEUDO_UNLOAD'] = '1'
10
11# calculate path to the real 'git'
12path = os.environ['PATH']
13path = path.replace(os.path.dirname(sys.argv[0]), '')
14real_git = shutil.which('git', path=path)
15
16if len(sys.argv) == 1:
17 os.execl(real_git, 'git')
18
19os.execv(real_git, sys.argv)