]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge PR #69463 into main
authorPatrick Donnelly <pdonnell@ibm.com>
Fri, 10 Jul 2026 20:34:10 +0000 (16:34 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Fri, 10 Jul 2026 20:34:10 +0000 (16:34 -0400)
* refs/pull/69463/head:
script/ptl-tool: address datetime warning

Reviewed-by: Kefu Chai <k.chai@proxmox.com>
1  2 
src/script/ptl-tool.py

index 4a6ca6aff3dd82245cbce418fab34da2ad91f9c9,a9bb69f953f9c2bdf5940fe5617c3fc1cadf9710..50e48a401822c1334bf686a359b8b0bce0f834ec
@@@ -1725,23 -1739,8 +1725,23 @@@ def build_branch(args)
          args.always_fetch = True
          args.skip_conflict_check = True
  
 +    if args.credits:
 +        try:
 +            c = resolve_ref(G, 'main', BASE_REMOTE_URL, args.always_fetch)
 +            githubmap_content = G.git.show(f"{c.hexsha}:.githubmap")
 +            comment = re.compile(r"\s*#")
 +            patt = re.compile(r"([\w-]+)\s+(.*)")
 +            for line in githubmap_content.splitlines():
 +                if comment.match(line):
 +                    continue
 +                m = patt.match(line)
 +                if m:
 +                    CONTRIBUTORS[m.group(1)] = m.group(2)
 +        except git.exc.GitCommandError as e:
 +            raise SystemExit(f"Could not fetch .githubmap from {BASE_REMOTE_URL}:main:\n{e}")
 +
      # Compute branch names now that integration flags and auto-detect have settled
-     branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER)
+     branch = datetime.datetime.now(datetime.UTC).strftime(args.branch).format(user=USER)
      if args.branch_release:
          branch = branch + "-" + args.branch_release
      if args.branch_append: