Skip to content

Commit bca1383

Browse files
committed
some nits when git is not properly configured
1 parent 1a2219e commit bca1383

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/BracketsEvents.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ define(function (require) {
3636

3737
FileSystem.on("change", function (evt, file) {
3838
// we care only for files in current project
39-
if (file.fullPath.indexOf(Utils.getProjectRoot()) === 0) {
39+
if (file && file.fullPath.indexOf(Utils.getProjectRoot()) === 0) {
4040
EventEmitter.emit(Events.BRACKETS_FILE_CHANGED, evt, file);
4141
}
4242
});

src/Branch.js

+2
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ define(function (require, exports) {
315315
}
316316

317317
function refresh() {
318+
if ($gitBranchName.length === 0) { return; }
319+
318320
// show info that branch is refreshing currently
319321
$gitBranchName
320322
.text("\u2026")

src/GutterManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ define(function (require, exports) {
1616
Strings = require("strings");
1717

1818
var currentFilePath = null,
19-
guttersEnabled = true,
19+
guttersEnabled = false,
2020
cm = null,
2121
results = null,
2222
gutterName = "brackets-git-gutter",

0 commit comments

Comments
 (0)