Thomas 2 years ago
parent
commit
7ce8a741b7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lua/cspell/code_actions/make_add_to_json.lua

+ 2 - 2
lua/cspell/code_actions/make_add_to_json.lua

@@ -39,11 +39,11 @@ return function(opts)
             local handle = io.popen("pwd")
             local pwd = handle:read("a*")
             handle:close()
-            os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/cspell.json")
+            os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/")
             os.execute("git add .")
 
             os.execute("git commit -m 'word added'")
-            os.execute("git push -u origin master")
+            os.execute("git push")
             os.execute("cd "..pwd)
             if on_success then
                 on_success(cspell.path, opts.params, "add_to_json")