Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
ezyang committed Aug 12, 2024
1 parent 76d2812 commit 2431761
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ghstack/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ def __post_init__(self) -> None:
# specify an option
direct = self.direct_opt
if direct is None:
direct = self.sh.git("cat-file", "-e", "HEAD:.github/ghstack_direct", exitcode=True)
direct_r = self.sh.git(
"cat-file", "-e", "HEAD:.github/ghstack_direct", exitcode=True
)
assert isinstance(direct_r, bool)
direct = direct_r

object.__setattr__(self, "direct", direct)

Expand Down Expand Up @@ -674,7 +678,6 @@ def prepare_updates(
commits_to_submit: List[ghstack.git.CommitHeader],
commits_to_rebase: List[ghstack.git.CommitHeader],
) -> Tuple[Dict[GitCommitHash, DiffMeta], Dict[GitCommitHash, GitCommitHash]]:

# Prepare diffs in reverse topological order.
# (Reverse here is important because we must have processed parents
# first.)
Expand Down

0 comments on commit 2431761

Please sign in to comment.