fix null check for depth.
Fix bug in httpFetcher.
Fix bug in git pull.
fix bug in tree-diff.
Fix bug in upload Pack parser.
Fix bug in initalizing git index.
Add git pull.
Merge branch 'master' into pull_git
Write remote heads.
Merge pull request #949 from dart-lang/pull_git

Preparation for git pull