When the original SYNCDEB SVN repostitory was migrated to GIT, had only been tracking the contents of the debian directory. For various reasons (including being able to use pristine-tar), I wanted to change that, so I started experimenting with how to do that.
The only branch I had after the import from the SVN repository was the debian branch. For reasons to do with the command being used, I need a new master and upstream branch with nothing in them use. After creating a new Synchronet v3.14a source code archive, I did the following to prepare the repository:
git symbolic-ref HEAD refs/heads/master
git clean -fdx
git commit --allow-empty -m "Initial creation of branch master."
git branch upstream
And then this to import the source:
git-import-orig --pristine-tar --verbose --no-dch -u3.14a \
That resulted in the new branches being created, but the created pristine-tar branch may not be quite correct. the command
pristine-tar checkout ../synchronet-3.14a.tar.gz
works with out errors but adding the --git-pristine-tar option to the git-buildpackage results in errors for pristine-tar.
Reference for creating a new master branch