mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Fix get_git_repo_dir (#71448)
Summary: Otherwise, rev-list will only pick-up commits in `.github` repo Before: ``` % git -C .github rev-list 1eb6146d967b2d09af37c54af411d03f0b790209..1ff7f65cc1ad499a71457368894ca14bed069749 -- .598b55fd18ae089d6bdf``` After ``` % git -C . rev-list 1eb6146d967b2d09af37c54af411d03f0b790209..1ff7f65cc1ad499a71457368894ca14bed069749 -- .1ff7f65cc12ac58b0dc1598b55fd1855899528a2ae089d6bdf``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/71448 Reviewed By: seemethere, atalman Differential Revision: D33644256 Pulled By: malfet fbshipit-source-id: fa2e06f6767e7702af6ce85471aea07fa58292c0 (cherry picked from commit594cecc0e1)
This commit is contained in:
parent
b8679ee1fc
commit
ff8fb717db
2
.github/scripts/gitutils.py
vendored
2
.github/scripts/gitutils.py
vendored
|
|
@ -16,7 +16,7 @@ def get_git_remote_name() -> str:
|
|||
|
||||
def get_git_repo_dir() -> str:
|
||||
from pathlib import Path
|
||||
return os.getenv("GIT_REPO_DIR", str(Path(__file__).resolve().parent.parent))
|
||||
return os.getenv("GIT_REPO_DIR", str(Path(__file__).resolve().parent.parent.parent))
|
||||
|
||||
|
||||
def fuzzy_list_to_dict(items: List[Tuple[str, str]]) -> Dict[str, List[str]]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user