Skip to content

Commit 8683d6f

Browse files
committed
Merge branch 'js/windows-fixes'
Signed-off-by: Elijah Newren <[email protected]>
2 parents 3f18153 + fbaab17 commit 8683d6f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

contrib/filter-repo-demos/lint-history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def lint_with_real_filenames(commit, metadata):
114114
f.write(contents_plus_newline[:-1])
115115

116116
# Lint the file
117-
subprocess.check_call(lint_args.command + [filename])
117+
subprocess.check_call(lint_args.command + [filename.decode('utf-8')])
118118

119119
# Get the new contents
120120
with open(filename, "rb") as f:

t/t9391-filter-repo-lib-usage.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ test_description='Usage of git-filter-repo as a library'
44
. ./test-lib.sh
55

66
# for git_filter_repo.py import
7-
export PYTHONPATH=$(dirname $TEST_DIRECTORY):$PYTHONPATH
7+
case "$(uname -s)" in
8+
MINGW*|MSYS)
9+
export PYTHONPATH=$(cygpath -am $TEST_DIRECTORY/..)\;$PYTHONPATH
10+
;;
11+
*)
12+
export PYTHONPATH=$(dirname $TEST_DIRECTORY):$PYTHONPATH
13+
;;
14+
esac
815
# Avoid writing git_filter_repo.pyc file
916
export PYTHONDONTWRITEBYTECODE=1
1017
export CONTRIB_DIR=$TEST_DIRECTORY/../contrib/filter-repo-demos

0 commit comments

Comments
 (0)