~/Documents/traveloka-ios
, then you need to go to Documents
folder (i.e. cd ~/Documents
).
rm -rf district-traveloka
git clone ssh://git@git.traveloka.com/diffusion/DRNTVLK/district-traveloka.git
cd district-traveloka
git submodule update --init ios
(this will take a while..)
cd ios
(this should be your working directory.)
git fetch
git checkout develop
The steps above should only be a one-time thing, and you don't need to worry about district-traveloka
– at least for now.
The ios
folder is a submodule. When you go inside the folder, Git automatically changes the context to the submodule's remote URI – i.e. the new iOS repository. In short, just perform all your usual work from the ios
folder.:warning:
:warning:
district-traveloka
) unless requested by Infra team!
In conclusion, if your previous iOS repository is located at ~/Documents/traveloka-ios
, now your working directory should be ~/Documents/district-traveloka/ios
.
Although we needed to fresh clone, we're still using Phabricator. The migration to Github will happen after 3.0 submission.
The original plan was to truncate our Git repository from before 2017 – that means, all commits before 2017 will be squashed together into one commit. However, the trial was unsuccessful as we encountered many conflicts that may cause the result to have different state. Therefore, we decided to move forward with plan B, which is deleting large file blobs from our history with the help of BFG Repo Cleaner. In the end, we managed to achieve:
This makes it easy for the infra team to test out integrations between Github and Bitrise, which we will start doing next week. This also makes it easy for us to move from Phabricator to Github later – simply by changing our remote URL.
Herald objects' repositories cannot be changed once set, therefore we needed to create a new one. But everything has been tested to perform just like before, so you can rest assured!
This includes Traveloka iOS, Traveloka iOS Diff, and Traveloka RN iOS.
We keep the old one only for historical reasons. It might be archived sometime in the future.
arc diff
,
arc patch
.
arc patch
.
arc diff
, or
arc land
if your revision has been accepted.
Specifically, please ping @david if you encounter any problems or other concerns.
P.S.: You can review our migration checklist here: https://docs.google.com/document/d/1YHoigmlTayln4oi0sgqU_HTHrPUCK4KRwidyzDiLgKU/edit?usp=sharing