capistrano/capistrano — pull request #261 by stephenfrank (2012-08-23 15:33:26+00:00)
Title: Trimmed additional 'path/to/submodule' when awking submodule status

In my deployment of a repository with git submodules which were in paths other than the root the current method of grabbing the module "name" from "git submodule status" didn't work. The entire path to the submodule was being placed into "config -f .git/config submodule.${mod}.url"

Before
```
$ git submodule status | awk '{ print $2 }'
my_module
path/to/other_module
```

After
```
$ git submodule status | awk '{ print $2 }' | sed -E 's/.*\/(.+)/\1/'
my_module
other_module
```

I thought a pull request might be more helpful than listing this in the issues. Use it, or don't! :)