Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit873823f

Browse files
committed
BF: run commit hook with repo.working_dir as cwd
Otherwise commit hook might rightfully fail, as happens ifrepository is e.g. git-annex repository. See e.g. now failinghttps://travis-ci.org/datalad/datalad/builds/49802394\#L1590which seems to pass tests nicely with patch as this
1 parentd8bbfea commit873823f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎git/index/fun.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def run_commit_hook(name, index):
7272
env=env,
7373
stdout=subprocess.PIPE,
7474
stderr=subprocess.PIPE,
75+
cwd=index.repo.working_dir,
7576
close_fds=(os.name=='posix'))
7677
stdout,stderr=cmd.communicate()
7778
cmd.stdout.close()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp