Skip to content

Commit da58672

Browse files
committed
fix(packer::build): fetch git revision
1 parent 4a3aea3 commit da58672

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LICENSE.Packer

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015, 2017, 2018 dbohdan
1+
Copyright (c) 2015, 2017, 2018, 2019 dbohdan
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

packer.tcl

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env tclsh
22
# Packer, a tool for creating Starpacks out of Git repositories.
3-
# Copyright (c) 2015, 2017, 2018 dbohdan.
3+
# Copyright (c) 2015, 2017, 2018, 2019 dbohdan.
44
# License: MIT
55

66
package require Tcl 8.6
77

88
namespace eval ::packer {
9-
variable version 0.8.0
9+
variable version 0.8.1
1010
}
1111

1212
proc ::packer::init {} {
@@ -115,6 +115,7 @@ proc ::packer::build args {
115115
with-path $fullBuildPath {
116116
run git clone [opt sourceRepository]
117117
with-path [opt projectDir] {
118+
run git fetch [opt sourceRepository] [opt revision]
118119
run git checkout [opt revision]
119120
set commit [run git rev-parse HEAD]
120121
}

0 commit comments

Comments
 (0)