Repository: dbt-labs/dbt-core

Issue:
[Grace Kelly] dbt init returning error message
## Issue
Running `dbt init <project name>` runs successfully, but prints an error message in the terminal.

### Steps to reproduce
* Run `dbt init foo`

### Expected result
* new project created in the `foo` directory
* success message in terminal:
```bash
$ dbt init foo
Creating dbt configuration folder at /Users/jake/.dbt

Your new dbt project "foo" was created! If this is your first time
using dbt, you'll need to set up your profiles.yml file -- this file will
tell dbt how to connect to your database. You can find this file by running:

  open /Users/jake/.dbt

For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:

  https://docs.getdbt.com/docs/configure-your-profile

One more thing:

Need help? Don't hesitate to reach out to us via GitHub issues or on Slack --
There's a link to our Slack group in the GitHub Readme. Happy modeling!
```
### Actual result
* new project created in the `foo` directory
* error message returned
```bash
$ dbt init foo
Creating dbt configuration folder at /Users/claire/.dbt
Encountered an error:
Got a non-zero returncode running: ['git', 'remote', 'rm', 'origin']
```
### System information
The output of `dbt --version`:
```
$ dbt debug
dbt version: 0.12.2-rc1
python version: 3.7.1
...
$ git --version
git version 2.16.2
```

[Grace Kelly] dbt init returning error message
## Issue
Running `dbt init <project name>` runs successfully, but prints an error message in the terminal.

### Steps to reproduce
* Run `dbt init foo`

### Expected result
* new project created in the `foo` directory
* success message in terminal:
```bash
$ dbt init foo
Creating dbt configuration folder at /Users/jake/.dbt

Your new dbt project "foo" was created! If this is your first time
using dbt, you'll need to set up your profiles.yml file -- this file will
tell dbt how to connect to your database. You can find this file by running:

  open /Users/jake/.dbt

For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:

  https://docs.getdbt.com/docs/configure-your-profile

One more thing:

Need help? Don't hesitate to reach out to us via GitHub issues or on Slack --
There's a link to our Slack group in the GitHub Readme. Happy modeling!
```
### Actual result
* new project created in the `foo` directory
* error message returned
```bash
$ dbt init foo
Creating dbt configuration folder at /Users/claire/.dbt
Encountered an error:
Got a non-zero returncode running: ['git', 'remote', 'rm', 'origin']
```
### System information
The output of `dbt --version`:
```
$ dbt debug
dbt version: 0.12.2-rc1
python version: 3.7.1
...
$ git --version
git version 2.16.2
```



Discussion:

Resolving patch:
diff --git a/dbt/task/init.py b/dbt/task/init.py
--- a/dbt/task/init.py
+++ b/dbt/task/init.py
@@ -64,7 +64,6 @@ def clone_starter_repo(self, project_name):
         dbt.clients.git.clone(
             STARTER_REPO, '.', project_name,
             remove_git_dir=True)
-        dbt.clients.git.remove_remote(project_name)
 
     def create_profiles_dir(self, profiles_dir):
         if not os.path.exists(profiles_dir):


Test patch:
diff --git a/test/integration/040_init_test/test_init.py b/test/integration/040_init_test/test_init.py
new file mode 100644
--- /dev/null
+++ b/test/integration/040_init_test/test_init.py
@@ -0,0 +1,41 @@
+
+from test.integration.base import DBTIntegrationTest, use_profile
+import os
+import shutil
+
+
+class TestInit(DBTIntegrationTest):
+    def tearDown(self):
+        project_name = self.get_project_name()
+
+        if os.path.exists(project_name):
+            shutil.rmtree(project_name)
+
+        super(TestInit, self).tearDown()
+
+    def get_project_name(self):
+        return "my_project_{}".format(self.unique_schema())
+
+    @property
+    def schema(self):
+        return "init_040"
+
+    @property
+    def models(self):
+        return "test/integration/040_init_test/models"
+
+    @use_profile('postgres')
+    def test_postgres_init_task(self):
+        project_name = self.get_project_name()
+        self.run_dbt(['init', project_name])
+
+        dir_exists = os.path.exists(project_name)
+        project_file = os.path.join(project_name, 'dbt_project.yml')
+        project_file_exists = os.path.exists(project_file)
+
+        git_dir = os.path.join(project_name, '.git')
+        git_dir_exists = os.path.exists(git_dir)
+
+        self.assertTrue(dir_exists)
+        self.assertTrue(project_file_exists)
+        self.assertFalse(git_dir_exists)