Class: Command::ReceivePack

Inherits:
Base
  • Object
show all
Includes:
FastForward, ReceiveObjects, RemoteAgent
Defined in:
lib/command/receive_pack.rb

Constant Summary collapse

CAPABILITIES =
["no-thin", "report-status", "delete-refs", "ofs-delta"]

Constants included from RemoteAgent

Command::RemoteAgent::ZERO_OID

Constants included from ReceiveObjects

Command::ReceiveObjects::UNPACK_LIMIT

Instance Attribute Summary

Attributes inherited from Base

#status

Instance Method Summary collapse

Methods included from RemoteAgent

#accept_client, #detect_git_dir, #git_repository?, #repo, #send_references

Methods included from ReceiveObjects

#recv_packed_objects, #select_processor_class, #transfer_unpack_limit

Methods included from FastForward

#fast_forward?, #fast_forward_error

Methods inherited from Base

#execute, #initialize

Constructor Details

This class inherits a constructor from Command::Base

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/command/receive_pack.rb', line 15

def run
  accept_client("receive-pack", CAPABILITIES)

  send_references
  recv_update_requests
  recv_objects
  update_refs

  exit 0
end