7 Repo
= Git
.open File
.expand_path('../../')
9 Old
= Repo
.object
ARGV.shift
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20
10 New
= Repo
.object
ARGV.shift
# 68f7abf4e6f922807889f52bc043ecd31b79f814
11 Refname
= ARGV.shift
# refs/heads/master
13 Branch
= Repo
.branches
[Refname
.split('/')[2..-1].join('/')] # Not sure if I trust this completely...