Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

FlightGear Git: splitting FGData

From FlightGear wiki
Revision as of 07:07, 16 October 2011 by Gijs (Talk | contribs) (Created page with "Aircraft are split to seperate repositories, under the [https://gitorious.org/flightgear-aircraft FlightGear Aircraft] project at Gitorious. == How to split an aircraft == You n...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Aircraft are split to seperate repositories, under the FlightGear Aircraft project at Gitorious.

How to split an aircraft

You need to have up-to-date fgdata to do this. There are two workflows that both do the trick:

Method 1

cd fgdata 
git subtree split -P Aircraft/737-300 -b 737-300
cd ../split-aircraft/737-300
git init
git fetch ../fgdata 737-300
git checkout -b master FETCH_HEAD
git push git@gitorious.org:flightgear-aircraft/737-300.git master

Method 2

(need to check this one)

cd fgdata
git clone --no-hardlinks /fgdata /737-300
git filter-branch --subdirectory-filter Aircraft/737-300 HEAD -- --all
git reset --hard
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --aggressive --prune=now