# File lib/bundler/dsl.rb, line 66 def git(uri, options = {}) raise DirectorySourceError, "cannot nest calls to directory or git" if @directory || @git @git = GitSource.new(@bundle, options.merge(:uri => uri)) @git_sources[uri] = @git @environment.add_priority_source(@git) retval = yield if block_given? @git = nil retval end