使用JGit推送大型提交的问题

时间:2017-11-15 12:06:53

标签: java git push jgit

我有一个同步两个Git存储库的Java应用程序。这种方法在90%的情况下都能很好地工作,但是当发生很多变化时,我的程序只是提交并且不会推送。我正在使用<span>来创建提交(因为我在使用JGit时遇到空白问题,这只是一个快速而肮脏的工具)。

import matplotlib.pyplot as plt
import numpy as np

data = np.random.random(20) # inital data set
f,ax = plt.subplots() # create the figure and plot
ax.plot(data) # plot initial data

for _ in range(10):
    data = np.random.random(20) # create new data
    ax.cla() # clear subplot's current data
    ax.plot(data) # plot new data

    plt.pause(0.01) # wait a few secs to allow plot to update 
    f.canvas.draw() # draw the plot again (in the same window) 

不推送提交,但也不会抛出异常。 如果程序冻结,我目前手动推动分支,并且工作正常。 我是JGit的新手,所以这可能是一个简单的修复,但我找不到任何解决方案。

0 个答案:

没有答案