Initial git repo in disrepair #50

Closed
yoni opened this Issue Aug 24, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Contributor

yoni commented Aug 24, 2012

I created a new app and found that the app already had a .git directory in it. Fantastic, I thought: Dave figured that I'd want my initial app to be saved in case I fuck something up!

Alas, I found that the git repo was already in disrepair:

yoni:~/workspace $ methadone my_fancy_app
warning: your app has no license
yoni:~/workspace $ cd my_fancy_app/
yoni:~/workspace/my_fancy_app [git: master] $ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#   new file:   .gitignore
#   new file:   Gemfile
#   new file:   LICENSE
#   new file:   README.md
#   new file:   Rakefile
#   new file:   lib/my_fancy_app.rb
#   new file:   lib/my_fancy_app/version.rb
#   new file:   my_fancy_app.gemspec
#
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   .gitignore
#   modified:   Rakefile
#   modified:   my_fancy_app.gemspec
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   README.rdoc
#   bin/
#   features/
#   test/

Granted, this is my first experience with methadone. Am I missing something?

Best,
Yoni

Owner

davetron5000 commented Aug 24, 2012

Yeah, there's another ticket to actually stop doing this.

Basically, methadone uses bundle gem under the covers, which inits a git
repo and adds whatever it creates. Methadone just sorta leaves it,
modifying some files and making others.

I kinda think it shouldn't do any of that, or at least not add stuff
automatically. We may be stuck unless we remove bundler entirely…

And thanks for trying methadone! :)

On Fri, Aug 24, 2012 at 5:00 PM, Yoni Ben-Meshulam <notifications@github.com

wrote:

I created a new app and found that the app already had a .git directory
in it. Fantastic, I thought: Dave figured that I'd want my initial app to
be saved in case I fuck something up!

Alas, I found that the git repo was already in disrepair:

yoni:/workspace $ methadone my_fancy_app
warning: your app has no license
yoni:
/workspace $ cd my_fancy_app/
yoni:~/workspace/my_fancy_app [git: master] $ git status# On branch master## Initial commit## Changes to be committed:# (use "git rm --cached ..." to unstage)## new file: .gitignore# new file: Gemfile# new file: LICENSE# new file: README.md# new file: Rakefile# new file: lib/my_fancy_app.rb# new file: lib/my_fancy_app/version.rb# new file: my_fancy_app.gemspec## Changes not staged for commit:# (use "git add ..." to update what will be committed)# (use "git checkout -- ..." to discard changes in working directory)## modified: .gitignore# modified: Rakefile# modified: my_fancy_app.gemspec## Untracked files:# (use "git add ..." to include in what will be committed)## README.rdoc# bin/# features/# test/

Granted, this is my first experience with methadone. Am I missing
something?

Best,
Yoni


Reply to this email directly or view it on GitHubhttps://github.com/davetron5000/methadone/issues/50.

Contributor

yoni commented Aug 24, 2012

I agree less magic is good. However, I also prefer opinionated frameworks and bundler + git seem like sound choices.

Happy Friday!

Owner

davetron5000 commented Aug 17, 2014

Fixed in 1.6.0! See #79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment