Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9777 from MarcelGerber/about-default-branch-name
Browse files Browse the repository at this point in the history
In About Dialog, display default branch name/SHA in case it cannot be determined
  • Loading branch information
redmunds committed Dec 4, 2014
2 parents dd2c1e9 + afd947b commit f016607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/BuildInfoUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ define(function (require, exports, module) {

_loadSHA(bracketsGitRoot).done(function (data) {
// Found a repository
result.resolve(data.branch, data.sha, true);
result.resolve(data.branch || "HEAD", data.sha || "unknown", true);
}).fail(function () {
// If package.json has repository data, Brackets is running from the installed /www folder
result.resolve(brackets.metadata.repository.branch, brackets.metadata.repository.SHA, false);
Expand Down

0 comments on commit f016607

Please sign in to comment.