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

In About Dialog, display default branch name/SHA in case it cannot be determined #9777

Merged
merged 1 commit into from
Dec 4, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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