mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
RepoHook: do not list options twice during hash based approval
Instead of Do you want to allow this script to run (yes/yes-never-ask-again/NO)? (yes/always/NO)? ask Do you want to allow this script to run (yes/always/NO)? Change-Id: I5f5a2d0e88086a8d85e54fb8623a62d74a20956a Signed-off-by: Jonathan Nieder <jrn@google.com>
This commit is contained in:
parent
c4c2b066d1
commit
71e4cea6de
@ -522,13 +522,11 @@ class RepoHook(object):
|
||||
prompt = ('Repo %s run the script:\n'
|
||||
' %s\n'
|
||||
'\n'
|
||||
'Do you want to allow this script to run '
|
||||
'(yes/yes-never-ask-again/NO)? ') % (self._GetMustVerb(),
|
||||
self._script_fullpath)
|
||||
'Do you want to allow this script to run')
|
||||
return self._CheckForHookApprovalHelper(
|
||||
'approvedhash',
|
||||
self._GetHash(),
|
||||
prompt,
|
||||
prompt % (self._GetMustVerb(), self._script_fullpath),
|
||||
'Scripts have changed since %s was allowed.' % (self._hook_type,))
|
||||
|
||||
def _ExecuteHook(self, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user