Unverified Commit 656c27c3 authored by Sam Shleifer's avatar Sam Shleifer Committed by GitHub
Browse files

[s2s] save hostname with repo info (#7301)

* save hostname
parent 34a1b75f
...@@ -4,6 +4,7 @@ import linecache ...@@ -4,6 +4,7 @@ import linecache
import math import math
import os import os
import pickle import pickle
import socket
from logging import getLogger from logging import getLogger
from pathlib import Path from pathlib import Path
from typing import Callable, Dict, Iterable, List, Union from typing import Callable, Dict, Iterable, List, Union
...@@ -372,6 +373,7 @@ def get_git_info(): ...@@ -372,6 +373,7 @@ def get_git_info():
"repo_id": str(repo), "repo_id": str(repo),
"repo_sha": str(repo.head.object.hexsha), "repo_sha": str(repo.head.object.hexsha),
"repo_branch": str(repo.active_branch), "repo_branch": str(repo.active_branch),
"hostname": str(socket.gethostname()),
} }
return repo_infos return repo_infos
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment