-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue 518 #547
Fix issue 518 #547
Conversation
There's two commits in the PR. Did you see 82e4bab "command/init: test for issue 518"? |
@@ -100,3 +100,45 @@ func TestInit_noArgs(t *testing.T) { | |||
t.Fatalf("bad: \n%s", ui.OutputWriter.String()) | |||
} | |||
} | |||
|
|||
// https://github.com/hashicorp/terraform/issues/518 | |||
func TestIssue518(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's name this something more semantic like "TestInit_dstInSrc". We can still link to the issue, but it's useful to have semantic names for these types of things (imagine if GitHub is down for example)
@ceh weird. I definitely didn't see that yesterday 😄. I made one small comment around test naming, but otherwise 👍 |
This is fine 😄 |
Don't walk the destination path when it is a subdirectory of the source.
Fixes issue 518.