mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Hide .git/ in file browser for now
This commit is contained in:
parent
0e96bd2fc0
commit
17b8c64a1d
2 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@ func update():
|
|||
files.sort_custom(self, "very_best_sort")
|
||||
for file_path in files:
|
||||
file_path = file_path.substr(2)
|
||||
if file_path.substr(0, 5) == ".git/":
|
||||
continue
|
||||
var child = $FileTree.create_item(root_item)
|
||||
child.set_text(0, file_path)
|
||||
#child.set_editable(0, true)
|
||||
|
|
2
shell.gd
2
shell.gd
|
@ -15,7 +15,7 @@ func cd(dir):
|
|||
# Run a shell command given as a string. Run this if you're interested in the
|
||||
# output of the command.
|
||||
func run(command, crash_on_fail=true):
|
||||
var debug = true
|
||||
var debug = false
|
||||
|
||||
if debug:
|
||||
print("$ %s" % command)
|
||||
|
|
Loading…
Reference in a new issue