Skip to content

Commit

Permalink
fix(Updater): Replace "master" branch tag with "main" to reflect NoCl…
Browse files Browse the repository at this point in the history
…oud's GitHub structure
  • Loading branch information
DGAlexandru committed Jan 25, 2025
1 parent f7f1566 commit 5a87c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/build_release_manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function GET_COMMIT_ID() {
const rootDirectory = path.resolve(__dirname, "..");
commitId = fs.readFileSync(rootDirectory + "/.git/HEAD", {"encoding": "utf-8"}).trim();

if (commitId.match(/^ref: refs\/heads\/master$/) !== null) {
commitId = fs.readFileSync(rootDirectory + "/.git/refs/heads/master", {"encoding": "utf-8"}).trim();
if (commitId.match(/^ref: refs\/heads\/main$/) !== null) {
commitId = fs.readFileSync(rootDirectory + "/.git/refs/heads/main", {"encoding": "utf-8"}).trim();
}
} catch (e) {
//intentional
Expand Down

0 comments on commit 5a87c49

Please sign in to comment.