Looks like this commit: https://github.com/gitlabhq/gitlabhq/commit/132caae73446e23a2ff8a7b1a4110efe42a36eb1#app/models/repository.rb

Which was added after this PR basically makes this moot, as well as the other methods above - I'm rebasing to include the commit and will update my PR.