Skip to content

Instantly share code, notes, and snippets.

@owenthereal
Last active August 29, 2015 14:14
Show Gist options
  • Save owenthereal/dee66a0bdc28dfef69a1 to your computer and use it in GitHub Desktop.
Save owenthereal/dee66a0bdc28dfef69a1 to your computer and use it in GitHub Desktop.
diff --git a/commands/init.go b/commands/init.go
index ef55871..d63de61 100644
--- a/commands/init.go
+++ b/commands/init.go
@@ -1,8 +1,6 @@
package commands
import (
- "path/filepath"
-
"github.com/github/hub/github"
"github.com/github/hub/utils"
)
@@ -60,7 +58,7 @@ func transformInitArgs(args *Args) error {
cmds := []string{"git"}
if newDir {
- cmds = append(cmds, "--git-dir", filepath.Join(name, ".git"))
+ //cmds = append(cmds, "--git-dir", filepath.Join(name, ".git"))
}
cmds = append(cmds, "remote", "add", "origin", url)
$ cucumber features/init.feature
Using the default profile...
...........F--........
(::) failed steps (::)
Exit status was 128 but expected it to be 0. Output:
Initialized empty Git repository in /Users/owen/gocode/src/github.com/github/hub/tmp/aruba/dotfiles/new_dir/.git/
fatal: Not a git repository (or any of the parent directories): .git
(RSpec::Expectations::ExpectationNotMetError)
features/init.feature:12:in `When I successfully run `hub init -g new_dir`'
Failing Scenarios:
cucumber features/init.feature:11 #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment