@@ -0,0 +1,539 @@
+from subprocess import check_call%0A%0Afrom valohai_cli.git import get_current_commit%0A%0A%0Adef test_get_current_commit(tmpdir):%0A    dir = str(tmpdir)%0A    check_call('git init', cwd=dir, shell=True)%0A    check_call('git config user.name Robot', cwd=dir, shell=True)%0A    check_call('git config user.email robot@example.com', cwd=dir, shell=True)%0A    tmpdir.join('test').write_text('test', 'utf8')%0A    check_call('git add .', cwd=dir, shell=True)%0A    check_call('git commit -mtest', cwd=dir, shell=True)%0A    assert len(get_current_commit(dir)) == 40%0A

Add a test for get_current_commit