```coffeescript
git = require '../git'
ProjectsListView = require '../views/projects-list-view'
StatusView = require '../views/status-view'

gitInit = ->
  currentFile = atom.workspace.getActiveTextEditor()?.getPath()
  if not currentFile and atom.project.getPaths().length > 1
    promise = new ProjectsListView().result.then (path) -> init(path)
  else
    init(atom.project.getPaths()[0])

init = (path) ->
  git.cmd
    args: ['init']
    cwd: path
    stdout: (data) ->
      new StatusView(type: 'success', message: data)
      atom.project.setPath(path)

module.exports = gitInit
```

Fix deprecations in git init command
user
```coffeescript
git = require '../git'
ProjectsListView = require '../views/projects-list-view'
StatusView = require '../views/status-view'

gitInit = ->
  currentFile = atom.workspace.getActiveTextEditor()?.getPath()
  if not currentFile and atom.project.getPaths().length > 1
    promise = new ProjectsListView().result.then (path) -> init(path)
  else
    init(atom.project.getPaths()[0])

init = (path) ->
  git.cmd
    args: ['init']
    cwd: path
    stdout: (data) ->
      new StatusView(type: 'success', message: data)
      atom.project.setPaths([path])

module.exports = gitInit
```
assistant