I'm working with dulwich on a project where I need to clone repositories sometimes by commit ID, sometimes by tag, sometimes by branch name. I'm having trouble with the tag case which seems to work for some repositories, but not for others.
Here's…
I'm wondering how I can perform the equivalent of git status with dulwich?
I tried this:
After adding/changing/renaming some files and staging them for commit, this is what I've tried doing:
from dulwich.repo import Repo
from dulwich.index import…
I want to be able to get a URL like https://github.com/user/repo.git given a remote name such as origin. So far I have only managed to get the commit hash:
>>> from dulwich import porcelain
>>> hash =…
I have a problem with Dulwich (switched to it from GitPython because of the well-known Windows bug with opened files in .git folder).
I'm trying to get a file from another branch of currently opened repo (its state from last commit). In GitPython…
I managed to clone using dulwich with HTTP url, but when I try to clone with SSH, I get a "HangupException". Is it possible that dulwich doesn't get access to the public key in the ~/.ssh folder, and then doesn't manage to do the SSH connection ?…
I have an existing repo with some branches. I want to create a new branch without any history on that repo. I'm trying to do this using Dulwich, which supports most git operations, though not the orphan flag.
What are the equivalent Git operations…
I'm trying to do the equivalent of git fetch -a using the dulwich library within python.
Using the docs at https://www.dulwich.io/docs/tutorial/remote.html I created the following script:
from dulwich.client import LocalGitClient
from dulwich.repo…
Are there any good examples out there for accessing and fetching a remote repository over HTTPS? I have a Git repository that I can clone from the command line with my username and password, but I want to be able to do this using Dulwich and just…
I would like to do the following with dulwich in an existing git repo:
change a file
commit
push to a certain branch (not master)
I read the documentation and also this post on SO, but I don't get it. Can someone explain how to chose a specific…
I like the Dulwich project as it provides pure Python interface to interacting with git.
It looks pretty low-level though... While I couldn't find reference on how to perform simple tasks.
My need's are pretty simple, provide the same as below git…
I have a file with a one-line change: git status reports
S:\mydir\AEL>git status CodingTools_SourceControl.ael
On branch master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout --…
I am trying clone a repository from a remote gitlab server using the python dulwich module. However I am getting the following error :
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it.
There is…
I have a working checkout function based on dulwich:
def checkout(repo, ref=None):
if ref is None:
ref = repo.head()
index = repo.index_path()
tree_id = repo[ref].tree
build_index_from_tree(repo.path, index,…
i use git to remote data. This is my code.
from dulwich.repo import Repo
from dulwich.server import DictBackend, TCPGitServer
repo = dulwich.repo.Repo.init('remote', mkdir=True)
backend = DictBackend({'/': repo})
dul_server = TCPGitServer(backend,…