mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
![]() We have some flags that limit running git commit commands under certain
situations, for example, when running under `--local`. However, those
should only affect remote git operations, not local read-only operations
like `git --version`, or `git rev-parse --abbrev-ref HEAD`.
This commit refactors things to achieve that.
By doing this, the `#to_s` representation of a source is more
consistent, since we don't get any errors when reading the checked out
branch, and we avoid some flip-flop lockfile issues.
|
||
---|---|---|
.. | ||
git_proxy.rb |