diff --git a/eden/scm/ghstack/sapling_shell.py b/eden/scm/ghstack/sapling_shell.py index 848f615dfefae..e9079bd21f629 100644 --- a/eden/scm/ghstack/sapling_shell.py +++ b/eden/scm/ghstack/sapling_shell.py @@ -68,7 +68,7 @@ def _rewrite_args(self, _args: List[str]) -> List[str]: # not be able to resolve arguments like HEAD, so we must resolve those # to a full hash before running Git. if 'HEAD' in args: - top = self._run_sapling_command(['log', '-r', 'max(descendants(.))', '-T', '{node}']) + top = self._run_sapling_command(['log', '-r', '.', '-T', '{node}']) for index, arg in enumerate(args): if arg == 'HEAD': args[index] = top