File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ Remove warning when cloning from a Git reference that does not look like a commit hash.
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ def resolve_revision(
236
236
# Do not show a warning for the common case of something that has
237
237
# the form of a Git commit hash.
238
238
if not looks_like_hash (rev ):
239
- logger .warning (
239
+ logger .info (
240
240
"Did not find branch or tag '%s', assuming revision or ref." ,
241
241
rev ,
242
242
)
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ import logging
3
4
import os
4
5
import pathlib
5
6
from typing import Any
@@ -271,6 +272,7 @@ def test_git_resolve_revision_rev_not_found(get_sha_mock: mock.Mock) -> None:
271
272
def test_git_resolve_revision_not_found_warning (
272
273
get_sha_mock : mock .Mock , caplog : pytest .LogCaptureFixture
273
274
) -> None :
275
+ caplog .set_level (logging .INFO )
274
276
get_sha_mock .return_value = (None , False )
275
277
url = HiddenText ("git+https://git.example.com" , redacted = "*" )
276
278
sha = 40 * "a"
You can’t perform that action at this time.
0 commit comments