diff options
| -rw-r--r-- | package_git.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package_git.go b/package_git.go index f6fadf6..cf86b9d 100644 --- a/package_git.go +++ b/package_git.go @@ -12,7 +12,16 @@ import ( "github.com/shuLhan/share/lib/git" ) +// +// gitFreeze set the package remote name and URL, branch, and revision. +// func (pkg *Package) gitFreeze() (err error) { + err = git.RemoteChange(pkg.FullPath, pkg.RemoteName, pkg.RemoteName, + pkg.RemoteURL) + if err != nil { + return + } + err = git.FetchAll(pkg.FullPath) if err != nil { return |
