Skip to content
Henrik Feldt edited this page Mar 24, 2014 · 3 revisions

The git source

  • Does not use CHECKSUM (because everything in git is checksummed)

Examples

With a tag

source     'https://github.com/mono/mono.git',
  :with => 'git',
  :tag  => 'mono-3.2.8'

With a sha hash

source     'https://github.com/mono/mono.git',
  :with => 'git',
  :sha  => 'b1e8599fb727dc9c5aa6c1df40252d882b56e8eb'

Alternatives for ref

sha [sha1-hexdigest as string]

Specifies the SHA1 hash to fetch from git.

tag [string]

Specifies the tag to fetch from git, from refs/tags/*.

branch [string]

Specifies the branch to fetch from git, from refs/heads/*

[ no options ]

Checks out origin/HEAD.

submodule [bool]

Make 'true' if you want to have fpm run git submodule update --init.