Just Use Clone.

This commit is contained in:
joshaber
2015-12-10 16:55:21 -05:00
parent 4916a2e762
commit 0c42747e8a

View File

@@ -76,9 +76,7 @@ class GitRepository
unless @repo?
throw new Error("No Git repository found searching path: #{path}")
asyncOptions = {}
for key, val of options
asyncOptions[key] = val
asyncOptions = _.clone(options)
# GitRepository itself will handle these cases by manually calling through
# to the async repo.
asyncOptions.refreshOnWindowFocus = false