autotest/autotest — pull request #93 by clebergnu (2011-11-27 03:59:39+00:00)
Title: Git Improvements

This pull request has patches that addresses:

* Issue #80 - Move git library to common_lib namespace
* Issue #70 - allow for a closer (usually local) git repo mirror

It has been tested in our internal development server (see job 30):

```
22:09:37 DEBUG| Initializing new git repo at /tmp/kernel_src for receiving git repo git://github.com/avikivity/kvm.git
22:09:37 DEBUG| Running 'git init'
22:09:37 DEBUG| [stdout] Initialized empty Git repository in /tmp/kernel_src/.git/
22:09:37 INFO | Fetching git [REP '/tmp/kvm_autotest_root/git_mirrors/kvm' BRANCH 'master'] -> /tmp/kernel_src
22:09:37 DEBUG| Running 'git fetch -q -f -u -t /tmp/kvm_autotest_root/git_mirrors/kvm master:master'
22:13:00 INFO | Fetching git [REP 'git://github.com/avikivity/kvm.git' BRANCH 'master'] -> /tmp/kernel_src
22:13:00 DEBUG| Running 'git fetch -q -f -u -t git://github.com/avikivity/kvm.git master:master'
22:13:01 DEBUG| Checking out local branch master
22:13:01 DEBUG| Running 'git checkout master'
...
22:13:07 ERROR| [stderr] Already on 'master'
22:13:07 DEBUG| Specific commit not specified
22:13:07 DEBUG| Running 'git log --pretty=format:"%H" -1'
22:13:07 DEBUG| Running 'git describe'
22:13:11 INFO | git commit hash is 7e0612168388080e63405790bcf6759b7100de37 (tag v3.1-rc4-12257-g7e06121)
...
22:13:11 INFO | --- START kernel.extract ---
22:13:11 INFO | Symlinking existing kernel source
22:13:11 INFO | --- END kernel.extract ---
22:13:12 INFO |	GOOD	build	kernel.extract	timestamp=1322363591	localtime=Nov 26 22:13:11
```