Skip to content

fix(): skips initialization of git if directory is already under version control#802

Closed
JohannesHoppe wants to merge 1 commit intoangular:masterfrom
JohannesHoppe:git-init-check-if-inside-work-tree
Closed

fix(): skips initialization of git if directory is already under version control#802
JohannesHoppe wants to merge 1 commit intoangular:masterfrom
JohannesHoppe:git-init-check-if-inside-work-tree

Conversation

@JohannesHoppe
Copy link
Contributor

avoids nested git repos, which are probably not what we wanted to have
see also: http://boxysystems.com/index.php/nested-git-repo-gotchas/


return exec('git --version')
.then(function () {

Copy link
Contributor

@hansl hansl May 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 comments are more confusing than helping. I suggest adding a single comment for the git command such as Check if we're inside a git repo.

@JohannesHoppe
Copy link
Contributor Author

Many thanks for the feedback!
Let me do a second try...

@hansl
Copy link
Contributor

hansl commented May 19, 2016

Looks good. I'll submit it when I have time to rebase or if you want to rebase quickly I'll merge. Thanks!

avoids a nested git repo, which is probably not what we wanted to have
@JohannesHoppe
Copy link
Contributor Author

Done. Squashed and rebased!

@hansl hansl closed this in 52c0cfb May 20, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants