FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

How to commit modified files? #71

Open Kyson opened 9 years ago

Kyson commented 9 years ago

my python file as following:

#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Kyson'
from gittle import Gittle

path = 'E:/工作相关/kyson.github.io'
url = 'git@github.com:Kyson/Kyson.github.io.git'

repo = Gittle(path)

repo.stage(repo.modified_files)

repo.commit(name="kyson",email="1140545460@qq.com",message="test")

but does not work.pls help.

iLoveTux commented 8 years ago

What doesn't work? What errors are you getting?

My guess is that it's related to the Unicode characters in your path, which is currently unsupported. Please see this issue and since it's an upstream issue also this one. If that's the issue you can probably get around this issue by renaming the folder 工作相关 to work-related. If that's not the issue, please post the traceback you are seeing.