gitcmds: Use the static GitConfig instance in default_remote()
commitb5856d7e024113d4da71bb1e2d0a907845ad088b
authorDavid Aguilar <davvid@gmail.com>
Fri, 20 Nov 2009 23:55:42 +0000 (20 15:55 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 20 Nov 2009 23:55:42 +0000 (20 15:55 -0800)
treeca724a83a0ed5f23898361fbe6564bdcaa401503
parent870f240873080c2962f563c417cb54b93c3c7440
gitcmds: Use the static GitConfig instance in default_remote()

This modifies default_remote() to use the static GitConfig instance.
The old version did not always return the right value so this also
adds a test case to ensure correctness.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/gitcmds.py
test/test_cola_gitcmds.py