Fix git-fetch and brctl doc

This commit is contained in:
devrandom 2012-08-03 15:02:11 -07:00
parent e82c0b4760
commit 9c95b90ca3
2 changed files with 2 additions and 2 deletions

View File

@ -79,5 +79,5 @@ If you have a runaway `lxc-start` command, just use `kill -9` on it.
The machine configuration requires access to br0 and assumes that the host address is 10.0.2.2: The machine configuration requires access to br0 and assumes that the host address is 10.0.2.2:
sudo brctl add br0 sudo brctl addbr br0
sudo ifconfig br0 10.0.2.2/24 up sudo ifconfig br0 10.0.2.2/24 up

View File

@ -193,7 +193,7 @@ build_desc["remotes"].each do |remote|
system!("git init inputs/#{dir}") system!("git init inputs/#{dir}")
system!("cd inputs/#{dir} && git remote add origin #{sanitize_path(remote["url"], remote["url"])}") system!("cd inputs/#{dir} && git remote add origin #{sanitize_path(remote["url"], remote["url"])}")
end end
system!("cd inputs/#{dir} && git fetch --tags") system!("cd inputs/#{dir} && git fetch && git fetch --tags")
commit = sanitize(remote["commit"], remote["commit"]) commit = sanitize(remote["commit"], remote["commit"])
commit = `cd inputs/#{dir} && git log --format=%H -1 #{commit}`.strip commit = `cd inputs/#{dir} && git log --format=%H -1 #{commit}`.strip
system!("cd inputs/#{dir} && git checkout -q #{commit}") system!("cd inputs/#{dir} && git checkout -q #{commit}")