Skip to content

Suggestion: Allow a recipe to checkout a module from a local git repository #1119

@wexi

Description

@wexi

diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py
index 234a111a..8e76daca 100644
--- a/pythonforandroid/recipe.py
+++ b/pythonforandroid/recipe.py
@@ -149,7 +149,7 @@ class Recipe(with_metaclass(RecipeMeta)):

         urlretrieve(url, target, report_hook)
         return target
  •    elif parsed_url.scheme in ('git', 'git+ssh', 'git+http', 'git+https'):
    
  •    elif parsed_url.scheme in ('git', 'git+file', 'git+ssh', 'git+http', 'git+https'):
           if isdir(target):
               with current_directory(target):
                   shprint(sh.git, 'fetch', '--tags')
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions