Commit 7cefcff 1 parent 4dafa48 commit 7cefcff Copy full SHA for 7cefcff
File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,22 @@ function githubremote()
322
322
echo " Remote 'github' created"
323
323
}
324
324
325
+ function privateremote()
326
+ {
327
+ if ! git rev-parse --git-dir & > /dev/null
328
+ then
329
+ echo " .git directory not found. Please run this from the root directory of the Android repository you wish to set up."
330
+ return 1
331
+ fi
332
+ git remote rm private 2> /dev/null
333
+ local REMOTE=$( git config --get remote.github.projectname)
334
+
335
+ local PROJECT=$( echo $REMOTE | sed -e " s#https://github.com/##g" )
336
+
337
+ git remote add private
[email protected] :
$PROJECT .git
338
+ echo " Remote 'private' created"
339
+ }
340
+
325
341
function installboot()
326
342
{
327
343
if [ ! -e " $OUT /recovery/root/system/etc/recovery.fstab" ];
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Additional LineageOS functions:
15
15
- aospremote: Add git remote for matching AOSP repository.
16
16
- cloremote: Add git remote for matching CodeLinaro repository.
17
17
- githubremote: Add git remote for LineageOS Github.
18
+ - privateremote: Add git remote for Github with ssh access.
18
19
- mka: Alias to "m".
19
20
- mkap: Builds the module(s) using mka and pushes them to the device.
20
21
- cmka: Cleans and builds using mka.
You can’t perform that action at this time.
0 commit comments