gac 0.17.1__py3-none-any.whl → 0.17.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
gac/__version__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Version information for gac package."""
2
2
 
3
- __version__ = "0.17.1"
3
+ __version__ = "0.17.2"
gac/git.py CHANGED
@@ -161,11 +161,16 @@ def push_changes() -> bool:
161
161
  return False
162
162
 
163
163
  try:
164
- run_git_command(["push"])
164
+ # Use raise_on_error=True to properly catch push failures
165
+ run_subprocess(["git", "push"], raise_on_error=True, strip_output=True)
165
166
  return True
166
- except GitError as e:
167
- if "fatal: No configured push destination" in str(e):
167
+ except subprocess.CalledProcessError as e:
168
+ error_msg = e.stderr.strip() if e.stderr else str(e)
169
+ if "fatal: No configured push destination" in error_msg:
168
170
  logger.error("No configured push destination.")
169
171
  else:
170
- logger.error(f"Failed to push changes: {e}")
172
+ logger.error(f"Failed to push changes: {error_msg}")
173
+ return False
174
+ except Exception as e:
175
+ logger.error(f"Failed to push changes: {e}")
171
176
  return False
gac/main.py CHANGED
@@ -270,15 +270,13 @@ def main(
270
270
  logger.info("Changes pushed successfully")
271
271
  console.print("[green]Changes pushed successfully[/green]")
272
272
  else:
273
- handle_error(
274
- GitError("Failed to push changes. Check your remote configuration."),
275
- exit_program=True,
273
+ console.print(
274
+ "[red]Failed to push changes. Check your remote configuration and network connection.[/red]"
276
275
  )
276
+ sys.exit(1)
277
277
  except Exception as e:
278
- handle_error(
279
- GitError(f"Error pushing changes: {e}"),
280
- exit_program=True,
281
- )
278
+ console.print(f"[red]Error pushing changes: {e}[/red]")
279
+ sys.exit(1)
282
280
 
283
281
  if not quiet:
284
282
  logger.info("Successfully committed changes with message:")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gac
3
- Version: 0.17.1
3
+ Version: 0.17.2
4
4
  Summary: AI-powered Git commit message generator with multi-provider support
5
5
  Project-URL: Homepage, https://github.com/cellwebb/gac
6
6
  Project-URL: Documentation, https://github.com/cellwebb/gac#readme
@@ -1,5 +1,5 @@
1
1
  gac/__init__.py,sha256=z9yGInqtycFIT3g1ca24r-A3699hKVaRqGUI79wsmMc,415
2
- gac/__version__.py,sha256=sVvxiYkeEDuKPgj77i_0CMcG6fFsYMUqK1EPvuc0nk0,67
2
+ gac/__version__.py,sha256=v99UPabTLMGan0nh-8ujsEAomKUPy1bclqTXLNIKfx8,67
3
3
  gac/ai.py,sha256=kxZ0UMU_2i9Vb2fXKAUcuFCeZJAZ9G8OSjgTVF06h-Y,5452
4
4
  gac/cli.py,sha256=KsagQerqcf2uqGS4HjV_U1AUBtY3DPmYLsTj08riZmE,4545
5
5
  gac/config.py,sha256=wSgEDjtis7Vk1pv5VPvYmJyD9-tymDS6GiUHjnCMbIM,1486
@@ -7,14 +7,14 @@ gac/config_cli.py,sha256=v9nFHZO1RvK9fzHyuUS6SG-BCLHMsdOMDwWamBhVVh4,1608
7
7
  gac/constants.py,sha256=MAxdASGncfZY1TdKGdhJZ0wvTBEU3gTN6KEdw8n3Bd8,4844
8
8
  gac/diff_cli.py,sha256=wnVQ9OFGnM0d2Pj9WVjWbo0jxqIuRHVAwmb8wU9Pa3E,5676
9
9
  gac/errors.py,sha256=3vIRMQ2QF3sP9_rPfXAFuu5ZSjIVX4FxM-FAuiR8N-8,7416
10
- gac/git.py,sha256=csjPf9YzxpYaZjIzIfa0yKTV64q22f718j_Zc9Q9maQ,5725
10
+ gac/git.py,sha256=MS2m4fv8h4mau1djFG1aje9NXTmkGsjPO9w18LqNGX0,6031
11
11
  gac/init_cli.py,sha256=aNllguofrcLn0ML9tzLVWFkPbwlAvCM9m7undHhMLEo,1825
12
- gac/main.py,sha256=QCEQmo1wW0lXxpghV4c3T6VzrjqJnrcZbheL7_Ykt3M,11624
12
+ gac/main.py,sha256=yO17nqu78K4pHj4u9-enVDB2qetR1YWgqK4WBa4pXoM,11597
13
13
  gac/preprocess.py,sha256=4igtZ9OTHgTpqwlJmbcGaqzmdD0HHCZJwsZ9eG118Gk,15360
14
14
  gac/prompt.py,sha256=i6XPWXCC_v1k2wVkv5FlL540RKG5uS-U6HJU9wC-cGw,18291
15
15
  gac/utils.py,sha256=W3ladtmsH01MNLdckQYTzYrYbTGEdzCKI36he9C-y_E,3945
16
- gac-0.17.1.dist-info/METADATA,sha256=efbNisgo-NwCZ9rnAH1SwhciSTAMSrivH7kVxemegvc,7654
17
- gac-0.17.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
- gac-0.17.1.dist-info/entry_points.txt,sha256=tdjN-XMmcWfL92swuRAjT62bFLOAwk9bTMRLGP5Z4aI,36
19
- gac-0.17.1.dist-info/licenses/LICENSE,sha256=s11puNmYfzwoSwG96nhOJe268Y1QFckr8-Hmzo3_eJE,1087
20
- gac-0.17.1.dist-info/RECORD,,
16
+ gac-0.17.2.dist-info/METADATA,sha256=Yx64UZRoaV05ERPcv9-6_UOp4OF3PiiCMg4AdLHlpis,7654
17
+ gac-0.17.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
+ gac-0.17.2.dist-info/entry_points.txt,sha256=tdjN-XMmcWfL92swuRAjT62bFLOAwk9bTMRLGP5Z4aI,36
19
+ gac-0.17.2.dist-info/licenses/LICENSE,sha256=s11puNmYfzwoSwG96nhOJe268Y1QFckr8-Hmzo3_eJE,1087
20
+ gac-0.17.2.dist-info/RECORD,,
File without changes