File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 68e5d8daa39a6c61e5730b6daacaa4f608de95ed
5
+ refs/heads/try: 7b36d66049e055306e96d912e9e8fb8fb1eda8ec
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -713,6 +713,24 @@ fn cmd_install(c: cargo) unsafe {
713
713
install_uuid( c, wd, uuid) ;
714
714
}
715
715
}
716
+ } else if str :: starts_with( target, "git: ") {
717
+ let ref = if c. opts. free. len( ) >= 4 u {
718
+ some( c. opts. free[ 3 u] )
719
+ } else {
720
+ none
721
+ } ;
722
+ install_git( c, wd, target, ref )
723
+ } else if target == "git" {
724
+ if c. opts. free. len( ) < 4 u {
725
+ fail #fmt( "needed git url") ;
726
+ }
727
+ let url = c. opts. free[ 3 u] ;
728
+ let ref = if c. opts. free. len( ) >= 5 u {
729
+ some( c. opts. free[ 4 u] )
730
+ } else {
731
+ none
732
+ } ;
733
+ install_git( c, wd, url, ref )
716
734
} else {
717
735
let mut name = target;
718
736
alt str :: find_char( name, '/' ) {
@@ -891,6 +909,8 @@ Querying:
891
909
Package installation:
892
910
[ options] [ source/] PKGNAME Install a package by name
893
911
[ options] uuid: [ source/] PKGUUID Install a package by uuid
912
+ [ options] git [ url] [ ref ] Install a package by git
913
+ [ options] git: //[ url] [ ref ] Install a package by git
894
914
895
915
Package installation options:
896
916
--mode=MODE Install to one of the following locations:
You can’t perform that action at this time.
0 commit comments