To upload a package correctly, do the following:

* Ensure that your build environment is set up correctly to avoid .git
  directories being included in your uploads.
  The following settings in your configuration should do this (assuming
  'debuild' is used to build the package):
  - ~/.bashrc:
    export DH_ALWAYS_EXCLUDE=CVS:.svn:.git
  - ~/.devscripts:
    DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I"
    DEBUILD_PRESERVE_ENVVARS=DH_ALWAYS_EXCLUDE
    # You may also want to add this setting if you work on D-I                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   