()
| 62 | |
| 63 | |
| 64 | def get_git_branch() -> Union[str, None]: |
| 65 | # Using this weird way to write 7777777, |
| 66 | # so makefile won't accidentally replace it here |
| 67 | # we'll be able to distinguish branch from placeholder value. |
| 68 | if last_git_branch == str(7_777777): |
| 69 | return None |
| 70 | return last_git_branch |
| 71 | |
| 72 | |
| 73 | # Accessed from bonsai extension: |