Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit252db0d

Browse files
authored
Update symbolic.py
1 parent49ea98a commit252db0d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

‎git/refs/symbolic.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
importos
2-
2+
importos.pathasosp
33
fromgit.compatimportdefenc
44
fromgit.objectsimportObject
55
fromgit.objects.commitimportCommit
@@ -373,19 +373,7 @@ def reference(self) -> Union['Head', 'RemoteReference', 'TagReference', 'Referen
373373
defreference(self,ref:Union[str,Commit_ish,'SymbolicReference'],logmsg:Union[str,None]=None
374374
)->'SymbolicReference':
375375
returnself.set_reference(ref=ref,logmsg=logmsg)
376-
377-
defis_valid(self)->bool:
378-
"""
379-
:return:
380-
True if the reference is valid, hence it can be read and points to
381-
a valid object or reference."""
382-
try:
383-
self.object
384-
except (OSError,ValueError):
385-
returnFalse
386-
else:
387-
returnTrue
388-
376+
389377
@property
390378
defis_detached(self):
391379
"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp