Class: Command::UploadPack

Inherits:
Base
  • Object
show all
Includes:
RemoteAgent, SendObjects
Defined in:
lib/command/upload_pack.rb

Constant Summary collapse

CAPABILITIES =
["ofs-delta"]

Constants included from RemoteAgent

RemoteAgent::ZERO_OID

Instance Attribute Summary

Attributes inherited from Base

#status

Instance Method Summary collapse

Methods included from SendObjects

#send_packed_objects

Methods included from RemoteAgent

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

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/upload_pack.rb', line 15

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

  send_references
  recv_want_list
  recv_have_list
  send_objects

  exit 0
end