2
0

dul-receive-pack 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python3 -u
  2. # dul-receive-pack - git-receive-pack in python
  3. # Copyright (C) 2008 John Carr <john.carr@unrouted.co.uk>
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
  6. # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
  7. # General Public License as public by the Free Software Foundation; version 2.0
  8. # or (at your option) any later version. You can redistribute it and/or
  9. # modify it under the terms of either of these two licenses.
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # You should have received a copy of the licenses; if not, see
  18. # <http://www.gnu.org/licenses/> for a copy of the GNU General Public License
  19. # and <http://www.apache.org/licenses/LICENSE-2.0> for a copy of the Apache
  20. # License, Version 2.0.
  21. #
  22. import os
  23. import sys
  24. from dulwich.porcelain import receive_pack
  25. if len(sys.argv) < 2:
  26. sys.stderr.write("usage: %s <git-dir>\n" % os.path.basename(sys.argv[0]))
  27. sys.exit(1)
  28. sys.exit(receive_pack(sys.argv[1]))