mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-06 04:52:26 +00:00
added branch concept. vipack now can pull for branch.
This commit is contained in:
parent
0990748ecb
commit
8ff51322f4
7 changed files with 39 additions and 31 deletions
|
|
@ -16,13 +16,13 @@ BEGIN
|
|||
(* Syncing *)
|
||||
vpkConf.getConfigTreeVal(tree);
|
||||
IF tree.typ = vpkSettings.git THEN
|
||||
vpkGit.syncTree(tree.url)
|
||||
vpkGit.syncTree(tree.url, tree.branch)
|
||||
ELSE
|
||||
Out.String("TODO: not a git url"); Out.Ln
|
||||
END;
|
||||
END sync;
|
||||
|
||||
PROCEDURE fetch*(name, url, typ, dst: ARRAY OF CHAR);
|
||||
PROCEDURE fetch*(name, url, typ, dst, branch: ARRAY OF CHAR);
|
||||
BEGIN
|
||||
IF dst = "" THEN
|
||||
vpkEnv.mkdefPkgDirPath(name, dst);
|
||||
|
|
@ -31,7 +31,7 @@ BEGIN
|
|||
END;
|
||||
|
||||
IF typ = vpkSettings.rmtTypGitVal THEN
|
||||
vpkGit.fetchRepo(url, dst);
|
||||
vpkGit.fetchRepo(url, dst, branch);
|
||||
ELSE
|
||||
Out.String("TODO: not a git url"); Out.Ln
|
||||
END
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue