You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git doesn't support "-C" args under 1.8.5 occurs in configure.ac #74596
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-08-20.15:19:30.543>created_at=<Date2017-05-20.09:29:22.278>labels= ['3.8', 'build', '3.7']
title='git doesn\'t support "-C" args under 1.8.5 occurs in configure.ac'updated_at=<Date2018-08-20.15:19:30.542>user='https://github.com/johanliu'
Encounter the same problem on centos7 and git version is 1.8.3. Instead of checking the version to use -C option, maybe we could just use --git-dir for the same purpose?
New changeset 4c85557 by Xiang Zhang in branch 'master': bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744) 4c85557
New changeset 2011dd7 by Miss Islington (bot) in branch '3.7': bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744) 2011dd7
New changeset 95f9e14 by Xiang Zhang in branch '2.7':
[2.7] bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744) (GH-8838) 95f9e14
Activity
johanliu commentedon May 20, 2017
git doesn't support "-C" args under 1.8.5 occurs in configure.ac
as I noticed from git release notes in 1.8.5:
to go there before doing anything else.
So we should have some conditional statements in configure.ac around git checkpoint, otherwise we got error message which is :
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
zhangyangyu commentedon Jun 20, 2018
Encounter the same problem on centos7 and git version is 1.8.3. Instead of checking the version to use -C option, maybe we could just use --git-dir for the same purpose?
This could give me the right sys._git info.
ned-deily commentedon Jun 22, 2018
Thanks for the PR. I agree with Xiang Zhang that using --git-dir appears to be a better solution. See other review comments on the PR.
zhangyangyu commentedon Aug 20, 2018
New changeset 4c85557 by Xiang Zhang in branch 'master':
bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744)
4c85557
miss-islington commentedon Aug 20, 2018
New changeset 2011dd7 by Miss Islington (bot) in branch '3.7':
bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744)
2011dd7
zhangyangyu commentedon Aug 20, 2018
New changeset 95f9e14 by Xiang Zhang in branch '2.7':
[2.7] bpo-30411: Use --git-dir instead of -C to make git work under version below 1.8.5. (GH-8744) (GH-8838)
95f9e14