We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bebfe3 commit f6fdb67Copy full SHA for f6fdb67
git/test/test_repo.py
@@ -1023,3 +1023,25 @@ def test_git_work_tree_env(self, rw_dir):
1023
self.assertEqual(r.working_dir, repo_dir)
1024
finally:
1025
os.environ = oldenv
1026
+
1027
+ @with_rw_directory
1028
+ def test_rebasing(self, rw_dir):
1029
+ r = Repo.init(rw_dir)
1030
+ fp = osp.join(rw_dir, 'hello.txt')
1031
+ r.git.commit("--allow-empty", message="init",)
1032
+ with open(fp, 'w') as fs:
1033
+ fs.write("hello world")
1034
+ r.git.add(Git.polish_url(fp))
1035
+ r.git.commit(message="English")
1036
+ self.assertEqual(r.currently_rebasing_on(), None)
1037
+ r.git.checkout("HEAD^1")
1038
1039
+ fs.write("Hola Mundo")
1040
1041
+ r.git.commit(message="Spanish")
1042
+ commitSpanish = r.commit()
1043
+ try:
1044
+ r.git.rebase("master")
1045
+ except GitCommandError:
1046
+ pass
1047
+ self.assertEqual(r.currently_rebasing_on(), commitSpanish)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments