File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ def remove_suffix(string, suffix):
6363 line = 'let version = "' + version + '"'
6464 print (line )
6565
66- sdk_commit_hash = subprocess .getoutput ("cat " + sdk_path + "/.git/refs/heads/main" )
66+ sdk_commit_hash = subprocess .check_output ("git rev-parse HEAD" , shell = True , cwd = sdk_path ).decode ("utf-8" ).rstrip ()
67+ sdk_branch = subprocess .check_output ("git rev-parse --abbrev-ref HEAD" , shell = True , cwd = sdk_path ).decode ("utf-8" ).rstrip ()
6768print ("SDK commit: " + sdk_commit_hash )
68- commit_message = "Bump to " + version + " (matrix-rust-sdk " + sdk_commit_hash + ")"
69+ commit_message = "Bump to " + version + " (matrix-rust-sdk/" + sdk_branch + " " + sdk_commit_hash + ")"
6970print ("Pushing changes as: " + commit_message )
7071os .system ("git add " + root + "/Package.swift" )
7172os .system ("git add " + root + "/Sources" )
You can’t perform that action at this time.
0 commit comments