mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 00:40:28 +07:00
[android] The getPlugins scripts can now accept the --shallow argument
Close https://github.com/JetBrains/intellij-community/pull/2595 GitOrigin-RevId: 54f2d033492babdbb91daba9e0d2e903062b99e0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e92cca402d
commit
32ff47ec04
@@ -14,7 +14,7 @@ and build numbers for older releases of IntelliJ IDEA can be found on the page o
|
||||
|
||||
These Git operations can also be done through the [IntelliJ IDEA user interface](https://www.jetbrains.com/help/idea/using-git-integration.html).
|
||||
|
||||
_**Speed Tip:**_ If the complete repository history isn't needed then using a shallow clone (`git clone --depth 1`) will save significant time.
|
||||
_**Speed Tip:**_ If the complete repository history isn't needed, then using a shallow clone (`git clone --depth 1`) will save significant time.
|
||||
|
||||
_**On Windows:**_ Two git options are required to check out sources on Windows. Since it's a common source of Git issues on Windows anyway, those options could be set globally (execute those commands before cloning any of intellij-community/android repositories):
|
||||
|
||||
@@ -22,7 +22,8 @@ _**On Windows:**_ Two git options are required to check out sources on Windows.
|
||||
* `git config --global core.autocrlf input`
|
||||
|
||||
IntelliJ IDEA Community Edition requires additional Android modules from separate Git repositories. To clone these repositories,
|
||||
run one of the `getPlugins` scripts located in the `<IDEA_HOME>` directory. These scripts clone their respective *master* branches. Make sure you are inside the `<IDEA_HOME>` directory when running those scripts, so the modules get cloned inside the `<IDEA_HOME>` directory.
|
||||
run one of the `getPlugins` scripts located in the `<IDEA_HOME>` directory. Use the `--shallow` argument if the complete repository history isn't needed.
|
||||
These scripts clone their respective *master* branches. Make sure you are inside the `<IDEA_HOME>` directory when running those scripts, so the modules get cloned inside the `<IDEA_HOME>` directory.
|
||||
* `getPlugins.sh` for Linux or macOS.
|
||||
* `getPlugins.bat` for Windows.
|
||||
|
||||
|
||||
@@ -1 +1,8 @@
|
||||
call git clone git://git.jetbrains.org/idea/android.git android
|
||||
@echo off
|
||||
|
||||
:ParseArgs
|
||||
if "%~1" == "--shallow" (
|
||||
call git clone git://git.jetbrains.org/idea/android.git android --depth 1
|
||||
) else (
|
||||
call git clone git://git.jetbrains.org/idea/android.git android
|
||||
)
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
git clone git://git.jetbrains.org/idea/android.git android
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" == "--shallow" ]; then
|
||||
git clone git://git.jetbrains.org/idea/android.git android --depth 1
|
||||
else
|
||||
git clone git://git.jetbrains.org/idea/android.git android
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user