Skip to content

Commit 52199b3

Browse files
committed
address review comments
1 parent 7a4f5dc commit 52199b3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

git/repo/base.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ class Repo:
151151
"-c",
152152
# Can install hooks that execute during clone:
153153
"--template",
154-
# Fetches from a caller-controlled URL:
154+
# Fetches from an additional caller-controlled URI:
155155
"--bundle-uri",
156156
]
157-
"""Options to :manpage:`git-clone(1)` that allow arbitrary commands to be executed.
157+
"""Options to :manpage:`git-clone(1)` that permit unsafe command execution or I/O.
158158
159159
The ``--upload-pack``/``-u`` option allows users to execute arbitrary commands
160160
directly:
@@ -166,6 +166,11 @@ class Repo:
166166
167167
The ``--template`` option can install hooks that execute during clone:
168168
https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---templatetemplate-directory
169+
170+
The ``--bundle-uri`` option fetches from an additional URI before fetching from the
171+
clone URL. An untrusted value can therefore make Git access local files or
172+
unintended network resources:
173+
https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---bundle-uriuri
169174
"""
170175

171176
unsafe_git_archive_options = [

0 commit comments

Comments
 (0)